Commit 988f3fbe authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-6846: Test tokudb_mariadb.mdev6657 fails in buildbot

Update the testcase so it is still meaningful when fix for MDEV-6657
is present in the code.
parent 4439d1fe
...@@ -8,7 +8,7 @@ col1 int(10) unsigned NOT NULL DEFAULT '0', ...@@ -8,7 +8,7 @@ col1 int(10) unsigned NOT NULL DEFAULT '0',
col2 mediumint(8) unsigned NOT NULL DEFAULT '0', col2 mediumint(8) unsigned NOT NULL DEFAULT '0',
col3 smallint(5) NOT NULL DEFAULT '1', col3 smallint(5) NOT NULL DEFAULT '1',
filler varchar(255) DEFAULT NULL, filler varchar(255) DEFAULT NULL,
PRIMARY KEY (col1,col2,col3), KEY pk_ersatz(col1,col2,col3),
KEY key1 (col1,col2) USING BTREE KEY key1 (col1,col2) USING BTREE
) ENGINE=TokuDB DEFAULT CHARSET=latin1 PACK_KEYS=1 COMPRESSION=TOKUDB_LZMA; ) ENGINE=TokuDB DEFAULT CHARSET=latin1 PACK_KEYS=1 COMPRESSION=TOKUDB_LZMA;
insert into t3 select 1300000000+a, 12345, 7890, 'data' from t2; insert into t3 select 1300000000+a, 12345, 7890, 'data' from t2;
...@@ -34,7 +34,7 @@ from t3 ...@@ -34,7 +34,7 @@ from t3
where col1 <= 1410799999 where col1 <= 1410799999
order by col1 desc,col2 desc,col3 desc limit 1; order by col1 desc,col2 desc,col3 desc limit 1;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range PRIMARY,key1 PRIMARY 4 NULL 2001 Using where; Using index 1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 2001 Using where; Using index
# The same query but the constant is bigger. # The same query but the constant is bigger.
# The query should use range(PRIMARY), not full index scan: # The query should use range(PRIMARY), not full index scan:
explain explain
...@@ -43,5 +43,5 @@ from t3 ...@@ -43,5 +43,5 @@ from t3
where col1 <= 1412199999 where col1 <= 1412199999
order by col1 desc, col2 desc, col3 desc limit 1; order by col1 desc, col2 desc, col3 desc limit 1;
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t3 range PRIMARY,key1 PRIMARY 4 NULL 15001 Using where; Using index 1 SIMPLE t3 range pk_ersatz,key1 pk_ersatz 4 NULL 15001 Using where; Using index
drop table t1,t2,t3; drop table t1,t2,t3;
...@@ -13,7 +13,7 @@ CREATE TABLE t3 ( ...@@ -13,7 +13,7 @@ CREATE TABLE t3 (
col2 mediumint(8) unsigned NOT NULL DEFAULT '0', col2 mediumint(8) unsigned NOT NULL DEFAULT '0',
col3 smallint(5) NOT NULL DEFAULT '1', col3 smallint(5) NOT NULL DEFAULT '1',
filler varchar(255) DEFAULT NULL, filler varchar(255) DEFAULT NULL,
PRIMARY KEY (col1,col2,col3), KEY pk_ersatz(col1,col2,col3),
KEY key1 (col1,col2) USING BTREE KEY key1 (col1,col2) USING BTREE
) ENGINE=TokuDB DEFAULT CHARSET=latin1 PACK_KEYS=1 COMPRESSION=TOKUDB_LZMA; ) ENGINE=TokuDB DEFAULT CHARSET=latin1 PACK_KEYS=1 COMPRESSION=TOKUDB_LZMA;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment