From ea6f0bd661c85f69cf1408ab2ed313048fe622d7 Mon Sep 17 00:00:00 2001 From: Rich Prohaska Date: Tue, 9 Oct 2012 15:21:21 +0000 Subject: [PATCH] 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 --- .../tokudb.change_column/r/change_auto_inc.result | 7 +++++++ .../tokudb.change_column/t/change_auto_inc.test | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 mysql-test/suite/tokudb.change_column/r/change_auto_inc.result create mode 100644 mysql-test/suite/tokudb.change_column/t/change_auto_inc.test diff --git a/mysql-test/suite/tokudb.change_column/r/change_auto_inc.result b/mysql-test/suite/tokudb.change_column/r/change_auto_inc.result new file mode 100644 index 00000000000..e3cb8bad5b5 --- /dev/null +++ b/mysql-test/suite/tokudb.change_column/r/change_auto_inc.result @@ -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; diff --git a/mysql-test/suite/tokudb.change_column/t/change_auto_inc.test b/mysql-test/suite/tokudb.change_column/t/change_auto_inc.test new file mode 100644 index 00000000000..a8385fa5fcf --- /dev/null +++ b/mysql-test/suite/tokudb.change_column/t/change_auto_inc.test @@ -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; \ No newline at end of file