diff options
Diffstat (limited to 'mysql-test/suite/engines/funcs/t/ta_add_string.test')
-rw-r--r-- | mysql-test/suite/engines/funcs/t/ta_add_string.test | 324 |
1 files changed, 324 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/t/ta_add_string.test b/mysql-test/suite/engines/funcs/t/ta_add_string.test new file mode 100644 index 00000000000..930b97f97e3 --- /dev/null +++ b/mysql-test/suite/engines/funcs/t/ta_add_string.test @@ -0,0 +1,324 @@ +--disable_warnings +DROP TABLE IF EXISTS t5; +--enable_warnings +CREATE TABLE t5(c1 CHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 CHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 CHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 CHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 CHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARCHAR(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 CHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 CHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 BINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 CHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 CHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARCHAR(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 BINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; +CREATE TABLE t5(c1 VARBINARY(10) NOT NULL); +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; +ALTER TABLE t5 ADD c2 VARBINARY(20) NOT NULL ; +SHOW TABLES; +let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`; +--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" + SHOW CREATE TABLE t5; DROP TABLE t5; SHOW TABLES; + |