mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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
This commit is contained in:
196
mysql-test/suite/engines/funcs/t/ix_unique_non_string.test
Normal file
196
mysql-test/suite/engines/funcs/t/ix_unique_non_string.test
Normal file
@ -0,0 +1,196 @@
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
CREATE TABLE t1(c1 BIT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 TINYINT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 SMALLINT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 MEDIUMINT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 INT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 INTEGER NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 BIGINT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 REAL NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 DOUBLE NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 FLOAT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 DECIMAL NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 NUMERIC NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 DATE NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 TIME NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 TIMESTAMP NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 YEAR NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 BIT NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 TINYINT NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 SMALLINT NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 MEDIUMINT NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 INT NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 INTEGER NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 BIGINT NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 REAL NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 DOUBLE NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 FLOAT NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 DECIMAL NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 NUMERIC NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 DATE NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 TIME NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 TIMESTAMP NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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 YEAR NOT NULL);
|
||||
CREATE UNIQUE INDEX i1 ON t1(c1);
|
||||
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;
|
||||
|
Reference in New Issue
Block a user