mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31822 ALTER TABLE ENGINE=x started failing instead of producing warning on unsupported TRANSACTIONAL=1
make TRANSACTIONAL table option behave similar to other engine-defined table options. If the engine doesn't suport it: * if specified expicitly in CREATE or ALTER - it's ER_UNKNOWN_OPTION * an error or a warning depending on sql_mode IGNORE_BAD_TABLE_OPTIONS * in ALTER TABLE from the engine that suppors it to the engine that doesn't - silently preserved (no warning) * it is commented out in SHOW CREATE unless IGNORE_BAD_TABLE_OPTIONS
This commit is contained in:
@ -1,9 +1,4 @@
|
||||
set @old_sql_mode= @@sql_mode;
|
||||
set @@sql_mode= '';
|
||||
alter table mysql.plugin engine=myisam;
|
||||
Warnings:
|
||||
Warning 1478 Table storage engine 'MyISAM' does not support the create option 'TRANSACTIONAL=1'
|
||||
set @@sql_mode= @old_sql_mode;
|
||||
set @old_dbug=@@debug_dbug;
|
||||
call mtr.add_suppression("Index for table.*mysql.plugin.MYI");
|
||||
call mtr.add_suppression("Index for table 'plugin' is corrupt; try to repair it");
|
||||
|
Reference in New Issue
Block a user