diff options
Diffstat (limited to 'mysql-test/suite/engines/funcs/t/ix_index_string_length.test')
-rw-r--r-- | mysql-test/suite/engines/funcs/t/ix_index_string_length.test | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/t/ix_index_string_length.test b/mysql-test/suite/engines/funcs/t/ix_index_string_length.test new file mode 100644 index 00000000000..7bd3c2b8c3b --- /dev/null +++ b/mysql-test/suite/engines/funcs/t/ix_index_string_length.test @@ -0,0 +1,52 @@ +--disable_warnings +DROP TABLE IF EXISTS t3; +--enable_warnings +CREATE TABLE t3(c1 CHAR(50) NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; +CREATE TABLE t3(c1 VARCHAR(50) NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; +CREATE TABLE t3(c1 BINARY(50) NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; +CREATE TABLE t3(c1 VARBINARY(50) NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; +CREATE TABLE t3(c1 CHAR(50) NOT NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; +CREATE TABLE t3(c1 VARCHAR(50) NOT NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; +CREATE TABLE t3(c1 BINARY(50) NOT NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; +CREATE TABLE t3(c1 VARBINARY(50) NOT NULL); +CREATE INDEX i1 ON t3(c1(10)); +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 t3; DROP TABLE t3; SHOW TABLES; + |