mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
f66e34d0d7
git-svn-id: file:///svn/mysql/tests/mysql-test@55031 c7de825b-a66e-492c-adef-691d508d4ae1
40 lines
No EOL
1.2 KiB
Text
40 lines
No EOL
1.2 KiB
Text
# 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;
|
|
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
|
|
|
|
CREATE TABLE t (a VARCHAR(255));
|
|
|
|
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
|
|
--error ER_UNSUPPORTED_EXTENSION
|
|
ALTER TABLE t CHANGE COLUMN a a VARCHAR(1) 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(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(256) CHARACTER SET latin1 COLLATE latin1_general_cs;
|
|
|
|
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);
|
|
|
|
DROP TABLE t; |