diff options
author | Omer BarNir <omer@mysql.com> | 2010-03-17 23:42:07 -0700 |
---|---|---|
committer | Omer BarNir <omer@mysql.com> | 2010-03-17 23:42:07 -0700 |
commit | c92b9b7315c01e87b1099e7df182213a1d8ffa6f (patch) | |
tree | 096cc41e4d541dd16c84cb829e630fef3d5baba7 /mysql-test/suite/engines/funcs/t/ta_2part_diff_string_to_pk.test | |
parent | 96d4a0384629e5cddc93ee215e7af484e4b95bde (diff) | |
download | mariadb-git-c92b9b7315c01e87b1099e7df182213a1d8ffa6f.tar.gz |
Test suites for engine testing, moved from test-extra so will be available
for general use.
mysql-test/Makefile.am:
Adding directories of additional test suites
mysql-test/mysql-stress-test.pl:
Adding check for additional errors checking during test run
Diffstat (limited to 'mysql-test/suite/engines/funcs/t/ta_2part_diff_string_to_pk.test')
-rw-r--r-- | mysql-test/suite/engines/funcs/t/ta_2part_diff_string_to_pk.test | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/mysql-test/suite/engines/funcs/t/ta_2part_diff_string_to_pk.test b/mysql-test/suite/engines/funcs/t/ta_2part_diff_string_to_pk.test new file mode 100644 index 00000000000..b7b302f6cf1 --- /dev/null +++ b/mysql-test/suite/engines/funcs/t/ta_2part_diff_string_to_pk.test @@ -0,0 +1,164 @@ +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings +CREATE TABLE t1(c1 CHAR(30) NOT NULL, c2 CHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 CHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 CHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 CHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARCHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARCHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARCHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARCHAR(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 BINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 BINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 BINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 BINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARBINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARBINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARBINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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(30) NOT NULL, c2 VARBINARY(20) NOT NULL, c3 INT NULL, c4 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 t1; +ALTER TABLE t1 ADD PRIMARY KEY (c1,c2); +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; + |