mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
refs #5511 test case for type comparisons with auto increment change
git-svn-id: file:///svn/mysql/tests/mysql-test@48765 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
6f8c8abe8f
commit
ea6f0bd661
2 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
DROP TABLE IF EXISTS t;
|
||||
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
|
||||
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
|
||||
CREATE TABLE t (a INT, PRIMARY KEY(a));
|
||||
ALTER TABLE t CHANGE COLUMN a a INT AUTO_INCREMENT;
|
||||
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
|
||||
DROP TABLE t;
|
14
mysql-test/suite/tokudb.change_column/t/change_auto_inc.test
Normal file
14
mysql-test/suite/tokudb.change_column/t/change_auto_inc.test
Normal file
|
@ -0,0 +1,14 @@
|
|||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t;
|
||||
--enable_warnings
|
||||
|
||||
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
|
||||
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
|
||||
|
||||
CREATE TABLE t (a INT, PRIMARY KEY(a));
|
||||
|
||||
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
||||
--error ER_UNSUPPORTED_EXTENSION
|
||||
ALTER TABLE t CHANGE COLUMN a a INT AUTO_INCREMENT;
|
||||
|
||||
DROP TABLE t;
|
Loading…
Reference in a new issue