mariadb/mysql-test/suite/tokudb/t/change_column_multiple_columns.test
Rich Prohaska f66e34d0d7 refs #6440 move change column tests
git-svn-id: file:///svn/mysql/tests/mysql-test@55031 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-03 16:49:00 +00:00

84 lines
4.5 KiB
Text

# this test generated by change_multiple_columns.py
# this test generated multiple column changes which should all fail since we support only one at a time
--disable_warnings
DROP TABLE IF EXISTS t;
--enable_warnings
SET SESSION TOKUDB_DISABLE_SLOW_ALTER=1;
SET SESSION DEFAULT_STORAGE_ENGINE='TokuDB';
CREATE TABLE t (a VARCHAR(1),b VARBINARY(1),c INT,d CHAR(1),e BINARY(1));
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT;
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN a a VARCHAR(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
--replace_regex /MariaDB/XYZ/ /MySQL/XYZ/
--error ER_UNSUPPORTED_EXTENSION
ALTER TABLE t CHANGE COLUMN b b VARBINARY(2),CHANGE COLUMN c c BIGINT,CHANGE COLUMN d d CHAR(2),CHANGE COLUMN e e BINARY(2);
DROP TABLE t;