2012-09-05 17:39:38 +00:00
|
|
|
# test that varchar change with different charset is not supported inplace
|
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
DROP TABLE IF EXISTS t;
|
|
|
|
--enable_warnings
|
|
|
|
|
|
|
|
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=ON;
|
2012-09-10 21:05:22 +00:00
|
|
|
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
|
2012-09-05 17:39:38 +00:00
|
|
|
|
2012-09-10 21:05:22 +00:00
|
|
|
CREATE TABLE t (a VARCHAR(255));
|
2012-09-05 17:39:38 +00:00
|
|
|
|
2012-09-06 15:57:04 +00:00
|
|
|
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
2012-09-05 17:39:38 +00:00
|
|
|
--error ER_UNSUPPORTED_EXTENSION
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(1) CHARACTER SET latin1 COLLATE latin1_general_cs;
|
|
|
|
|
2012-09-06 15:57:04 +00:00
|
|
|
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
2012-09-05 17:39:38 +00:00
|
|
|
--error ER_UNSUPPORTED_EXTENSION
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_general_cs;
|
|
|
|
|
2012-09-06 15:57:04 +00:00
|
|
|
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
2012-09-05 17:39:38 +00:00
|
|
|
--error ER_UNSUPPORTED_EXTENSION
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(256) CHARACTER SET latin1 COLLATE latin1_general_cs;
|
|
|
|
|
2012-09-10 21:05:22 +00:00
|
|
|
DROP TABLE t;
|
|
|
|
|
|
|
|
CREATE TABLE t (a VARCHAR(255) CHARACTER SET latin1 COLLATE latin1_general_cs);
|
|
|
|
|
|
|
|
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
|
|
|
--error ER_UNSUPPORTED_EXTENSION
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(1);
|
|
|
|
|
|
|
|
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
|
|
|
--error ER_UNSUPPORTED_EXTENSION
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(255);
|
|
|
|
|
|
|
|
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
|
|
|
--error ER_UNSUPPORTED_EXTENSION
|
|
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(256);
|
|
|
|
|
2012-09-05 17:39:38 +00:00
|
|
|
DROP TABLE t;
|