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:
Rich Prohaska 2012-10-09 15:21:21 +00:00
parent 6f8c8abe8f
commit ea6f0bd661
2 changed files with 21 additions and 0 deletions

View file

@ -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;

View 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;