summaryrefslogtreecommitdiff
path: root/sql/sql_rename.cc
Commit message (Collapse)AuthorAgeFilesLines
* Many files:kent@mysql.com/kent-amd64.(none)2006-12-231-2/+1
| | | | Changed header to GPL version 2 only
* Fixed portability issue in my_thr_init.c (was added in my last push)monty@mysql.com/narttu.mysql.fi2006-11-301-1/+1
| | | | | | | | | | Fixed compiler warnings (detected by VC++): - Removed not used variables - Added casts - Fixed wrong assignments to bool - Fixed wrong calls with bool arguments - Added missing argument to store(longlong), which caused wrong store method to be called.
* sql_rename.cc:evgen@sunlight.local2006-10-181-1/+1
| | | | Cleanup of fix for bug#14959.
* Bug#14959: ALTER TABLE isn't able to rename a viewevgen@moonbone.local2006-10-131-71/+123
| | | | | | | | The mysql_alter_table() was able to rename only a table. The view/table renaming code is moved from the function rename_tables to the new function called do_rename(). The mysql_alter_table() function calls it when it needs to rename a view.
* Fix for bug #13525 "Rename table does not keep info of triggers".dlenev@mysql.com2006-02-241-2/+21
| | | | | | Let us transfer triggers associated with table when we rename it (but only if we are not changing database to which table belongs, in the latter case we will emit error).
* Changes in get_table_type() and mysql_frm_type(). The main problem wasjani@ua141d10.elisa.omakaista.fi2005-11-031-3/+4
| | | | | that in mysql_rm_table_part2_with_lock() previously we needed to open same file twice. Now once is enough.
* Changes after discussion/review with Sanjageorg@lmy002.wdf.sap.corp2005-09-181-25/+25
|
* Fix for bug#5508 after Sanja's reviewgeorg@lmy002.wdf.sap.corp2005-09-161-8/+26
|
* Bug#6877 MySQL should give an error if the requested table type is not availableacurtis@xiphis.org2005-06-171-1/+1
| | | | Implement new SQL mode - NO_ENGINE_SUBSTITUTION
* Cleanup during reviewsmonty@mysql.com2005-03-161-1/+1
| | | | | Removed some optional arguments Fixed portability problem in federated tests
* First stage of table definition cachemonty@mysql.com2005-01-061-2/+2
| | | | | | | | | | Split TABLE to TABLE and TABLE_SHARE (TABLE_SHARE is still allocated as part of table, will be fixed soon) Created Field::make_field() and made Field_num::make_field() to call this Added 'TABLE_SHARE->db' that points to database name; Changed all usage of table_cache_key as database name to use this instead Changed field->table_name to point to pointer to alias. This allows us to change alias for a table by just updating one pointer. Renamed TABLE_SHARE->real_name to table_name Renamed TABLE->table_name to alias Renamed TABLE_LIST->real_name to table_name
* Merge with 4.1monty@mysql.com2004-12-061-1/+1
|\
| * Bug#6391 (binlog-do-db rules ignored)mats@mysql.com2004-12-031-1/+1
| | | | | | | | | | | | | | CREATE DATABASE statement used the current database instead of the database created when checking conditions for replication. CREATE/DROP/ALTER DATABASE statements are now replicated based on the manipulated database.
* | now my_printf_error is not better then my_error, but my_error call is shorterbell@sanja.is.com.ua2004-11-131-4/+2
| | | | | | | | | | used only one implementation of format parser of (printf) fixed multistatement
* | post-review fixesbell@sanja.is.com.ua2004-11-121-3/+6
| |
* | Merge with 4.1monty@mysql.com2004-09-061-1/+1
|\ \ | |/ | | | | | | (Includes merge of arena code in 4.1 and 5.0)
| * after merge fixserg@serg.mylan2004-08-201-1/+1
| |
* | VIEWbell@sanja.is.com.ua2004-07-161-9/+9
| | | | | | | | two TABLE_LIST copy eliminated
* | Merge 4.1 -> 5.0.pem@mysql.com2004-04-071-17/+56
|\ \ | |/
| * reverting table list to be able to use it in next PS call (BUG#2811)bell@sanja.is.com.ua2004-04-061-10/+34
| |
| * fixed vva@eagle.mysql.r18.ru2004-04-011-0/+3
| | | | | | | | | | BUG #2397 "RENAME TABLES is not blocked by FLUSH TABLES WITH READ LOCK" (added waiting for global_read_lock in mysql_rename_tables)
| * Merge with 4.0.18monty@mysql.com2004-02-111-7/+19
| |\
| | * Some small portability fixes.monty@mysql.com2003-12-301-7/+19
| | | | | | | | | | | | | | | Added support for lower_case_table_names=2, which is to be used on case insensitive file systems. This tells MySQL to preserve the used case of filenames and database names to make it esier to move files between cases sensitive can case insensitive file systems (like Windows and Linux)
* | | Merge 4.1 to 5.0.pem@mysql.com2003-12-191-0/+1
|\ \ \ | |/ /
| * | Merge with 4.0.17monty@mysql.com2003-12-171-0/+1
| |\ \ | | |/
| | * Fix for BUG#2083guilhem@mysql.com2003-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "EE_ error codes (EE_DELETE, EE_WRITE) end up in the binlog, making slave stop". The problem was that during execution of the command on the master, an error can occur (for example, not space left on device, then mysqld waits and when there is space it completes successfully: so finally it worked but the error EE_WRITE remains in thd->net.last_errno and thd->net.last_error). To know if finally the command succeeded, we test the 'error' variable in every place, and if it shows no failure we reset thd->net.last_err* using the function THD::clear_error() which is backported from 4.1. A new test to see if now only real errors get to the binlog (note: the test uses "rm"). Also a bit of memory free/alloc saving in log_event.cc (do not free the whole mem_root after every query in the slave SQL thread: we can keep the initial block of it; which will be freed when the thread terminates).
* | | Deprecated the update log (Sprint task #792). Now --log-updateguilhem@mysql.com2003-04-021-1/+0
|/ / | | | | | | | | just turns on --log-bin and prints a warning. SQL_LOG_UPDATE is handled in two ways (see mysqld.cc for comments).
* | Merge with 4.0monty@narttu.mysql.fi2003-03-161-23/+11
|\ \ | |/
| * Merge with 3.23 to get fix for deadlock when doing LOCK TABLES in one thread ↵monty@narttu.mysql.fi2003-03-041-23/+11
| |\ | | | | | | | | | and DROP TABLE in another thread
| | * Fixed a deadlock problem when using LOCK TABLE in one thread and DROP TABLE ↵monty@narttu.mysql.fi2003-03-031-22/+10
| | | | | | | | | | | | in another
* | | Merge with 4.0monty@mashka.mysql.fi2002-11-211-1/+1
|\ \ \ | |/ /
| * | Put temporary files in binlog cache when using BEGIN/COMMITmonty@hundin.mysql.fi2002-11-071-1/+1
| | | | | | | | | | | | | | | | | | Let MySQL 4.0 read 4.1 .frm files without 4.1 specific extensions New variables @@rand_seed1 and @@rand_seed2 (used by replication) DROP TEMPORARY TABLE
* | | Fixes and code cleanups after merge with 4.0.3monty@mashka.mysql.fi2002-10-021-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Warning handling and initial prepared statement handling (last not complete yet) Changed a lot of functions that returned 0/1 to my_bool type. GRANT handling now uses read/write locks instead of mutex Change basic net functions to use THD instead of NET (needed for 4.1 protocol) Use my_sprintf instead of sprintf() + strlen() Added alloc_query() to be able to chare query initialization code with prepared statements. Cleanup handling of SHOW COUNT(*) WARNINGS and SELECT LAST_INSERT_ID() Note that the following test fails (will be fixed ASAP): sub_select, union, rpl_rotate_logs and rpl_mystery22
* | Lots of code fixes to the replication code (especially the binary logging ↵monty@mashka.mysql.fi2002-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and index log file handling) Fixed bugs in my last changeset that made MySQL hard to compile. Added mutex around some data that could cause table cache corruptions when using OPTIMIZE TABLE / REPAIR TABLE or automatic repair of MyISAM tables. Added mutex around some data in the slave start/stop code that could cause THD linked list corruptions Extended my_chsize() to allow one to specify a filler character. Extend vio_blocking to return the old state (This made some usage of this function much simpler) Added testing for some functions that they caller have got the required mutexes before calling the function. Use setrlimit() to ensure that we can write core file if one specifies --core-file. Added --slave-compressed-protocol Made 2 the minimum length for ft_min_word_len Added variables foreign_key_checks & unique_checks. Less logging from replication code (if not started with --log-warnings) Changed that SHOW INNODB STATUS requre the SUPER privilege More DBUG statements and a lot of new code comments
* | merge with 3.23.50monty@hundin.mysql.fi2002-03-271-5/+5
|\ \ | |/
| * Quote names to SHOW CREATE for mysqldumpmonty@tik.mysql.fi2002-03-211-5/+5
| | | | | | | | | | Fix thread-related bug when doing DROP TABLE Fix bug in RENAME TABLE on windows
* | Added --sql-mode=NO_UNSIGNED_SUBTRACTIONmonty@hundin.mysql.fi2002-01-301-2/+4
| |
* | New error messagesmonty@hundin.mysql.fi2002-01-291-2/+2
| | | | | | | | | | | | | | | | Test of unsigned BIGINT values Fixes for queries-per-hour Cleanup of replication code (comments and portability fixes) Make most of the binary log code 4G clean Changed syntax for GRANT ... QUERIES PER HOUR
* | Update copyrightmonty@hundin.mysql.fi2001-12-061-4/+4
| | | | | | | | Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
* | Portability fixmonty@hundin.mysql.fi2001-11-071-1/+1
| | | | | | | | Cleanup typos (like SKIPP -> SKIP)
* | Remved Gemini code.monty@hundin.mysql.fi2001-10-101-7/+2
|/
* Add support for Gemini table handler, Monty has checked and approvedmikef@nslinux.bedford.progress.com2001-03-211-2/+10
| | | | Fix bug when read return error
* Faster log::write() call, memory leak fix, flush master fix.monty@donna.mysql.com2000-09-161-3/+6
|
* Fixes for Ia64monty@donna.mysql.com2000-08-231-2/+1
|
* FLUSH TABLE table_listmonty@donna.mysql.com2000-08-221-21/+36
| | | | | Fixes for RENAME TABLE Portability fixes
* Merge of last changesmonty@donna.mysql.com2000-08-211-0/+132