diff options
Diffstat (limited to 'mysql-test/suite/engines/funcs/t/ta_string_to_not_null.test')
-rw-r--r-- | mysql-test/suite/engines/funcs/t/ta_string_to_not_null.test | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/t/ta_string_to_not_null.test b/mysql-test/suite/engines/funcs/t/ta_string_to_not_null.test new file mode 100644 index 00000000000..140735a50a3 --- /dev/null +++ b/mysql-test/suite/engines/funcs/t/ta_string_to_not_null.test @@ -0,0 +1,84 @@ +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings +CREATE TABLE t1(c1 CHAR(100) 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 t1; +ALTER TABLE t1 MODIFY c1 CHAR(100) 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 t1; DROP TABLE t1; SHOW TABLES; +CREATE TABLE t1(c1 VARCHAR(100) 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 t1; +ALTER TABLE t1 MODIFY c1 VARCHAR(100) 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 t1; DROP TABLE t1; SHOW TABLES; +CREATE TABLE t1(c1 BINARY(100) 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 t1; +ALTER TABLE t1 MODIFY c1 BINARY(100) 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 t1; DROP TABLE t1; SHOW TABLES; +CREATE TABLE t1(c1 VARBINARY(100) 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 t1; +ALTER TABLE t1 MODIFY c1 VARBINARY(100) 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 t1; DROP TABLE t1; SHOW TABLES; +CREATE TABLE t1(c1 CHAR(100) 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 t1; +ALTER TABLE t1 CHANGE c1 c1 CHAR(100) 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 t1; DROP TABLE t1; SHOW TABLES; +CREATE TABLE t1(c1 VARCHAR(100) 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 t1; +ALTER TABLE t1 CHANGE c1 c1 VARCHAR(100) 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 t1; DROP TABLE t1; SHOW TABLES; +CREATE TABLE t1(c1 BINARY(100) 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 t1; +ALTER TABLE t1 CHANGE c1 c1 BINARY(100) 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 t1; DROP TABLE t1; SHOW TABLES; +CREATE TABLE t1(c1 VARBINARY(100) 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 t1; +ALTER TABLE t1 CHANGE c1 c1 VARBINARY(100) 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 t1; DROP TABLE t1; SHOW TABLES; + |