mirror of
https://github.com/MariaDB/server.git
synced 2025-09-08 06:27:57 +03:00
70 lines
2.9 KiB
Plaintext
70 lines
2.9 KiB
Plaintext
if (`select @@default_storage_engine = "aria"`)
|
|
{
|
|
skip "Aria is not supported for this test (Index on virtual columns)";
|
|
}
|
|
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
--enable_warnings
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE INDEX i1 USING BTREE ON t1(c1 ASC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
DROP INDEX i1 ON t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE INDEX i1 USING BTREE ON t1(c1 DESC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE UNIQUE INDEX i1 USING BTREE ON t1(c1 ASC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
|
|
DROP INDEX i1 ON t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE UNIQUE INDEX i1 USING BTREE ON t1(c1 DESC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
|
|
DROP INDEX i1 ON t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE INDEX i1 USING HASH ON t1(c1 ASC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
DROP INDEX i1 ON t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE INDEX i1 USING HASH ON t1(c1 DESC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
DROP INDEX i1 ON t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE UNIQUE INDEX i1 USING HASH ON t1(c1 ASC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
|
|
DROP INDEX i1 ON t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
CREATE TABLE t1(c1 INTEGER NOT NULL);
|
|
CREATE UNIQUE INDEX i1 USING HASH ON t1(c1 DESC);
|
|
let $ENGINE=`select variable_value from information_schema.global_variables where variable_name='STORAGE_ENGINE'`;
|
|
--replace_result $ENGINE ENGINE " PAGE_CHECKSUM=0" "" " PAGE_CHECKSUM=1" ""
|
|
SHOW CREATE TABLE t1;
|
|
|
|
DROP INDEX i1 ON t1;
|
|
DROP TABLE t1; SHOW TABLES;
|
|
|