1
0
mirror of https://github.com/MariaDB/server.git synced 2025-10-22 19:52:58 +03:00
Files
mariadb/mysql-test/t
andrey@example.com e6a4727779 Fix for bug#22369: Alter table rename combined
with other alterations causes lost tables

Using RENAME clause combined with other clauses of ALTER TABLE led to
data loss (the data was there but not accessible). This could happen if the
changes do not change the table much. Adding and droppping of fields and
indices was safe. Renaming a column with MODIFY or CHANGE was unsafe operation,
if the actual column didn't change (changing from int to int, which is a noop)
  
Depending on the storage engine (SE) the behavior is different:
1)MyISAM/MEMORY - the ALTER TABLE statement completes
  without any error but next SELECT against the new table fails.
2)InnoDB (and every other transactional table) - The ALTER TABLE statement
  fails. There are the the following files in the db dir -
  `new_table_name.frm` and a temporary table's frm. If the SE is file
  based, then the data and index files will be present but with the old
  names. What happens is that for InnoDB the table is not renamed in the
  internal DDIC.

Fixed by adding additional call to mysql_rename_table() method, which should
not include FRM file rename, because it has been already done during file
names juggling.
2006-12-04 18:22:38 +01:00
..
2006-08-16 14:58:49 +02:00
2006-08-16 14:58:49 +02:00
2006-11-22 14:06:59 +01:00
2006-11-02 13:51:43 +01:00
2006-08-16 19:29:49 +02:00
2006-08-16 19:29:49 +02:00
2006-08-30 23:09:47 +04:00
2006-11-15 10:23:27 +01:00
2006-11-15 10:23:27 +01:00
2006-11-02 13:51:43 +01:00
2006-09-29 01:36:17 +05:00
2006-08-16 19:29:49 +02:00
2006-08-22 11:55:25 +02:00
2006-09-14 12:32:49 +02:00
2006-09-01 16:14:59 +02:00
2006-08-14 19:05:35 +04:00
2006-11-10 19:07:52 +01:00
2006-11-03 13:08:53 +04:00
2006-11-15 10:23:27 +01:00
2006-08-22 09:48:15 +02:00
2006-08-22 09:48:15 +02:00
2006-09-01 16:14:59 +02:00
2006-09-21 14:19:17 +02:00
2006-10-05 00:36:03 +02:00
2006-09-21 00:59:48 +02:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-08-30 13:20:39 -07:00
2006-10-03 16:00:09 +05:00
2006-10-05 12:41:26 +02:00