mirror of
https://github.com/MariaDB/server.git
synced 2025-04-27 09:29:57 +02:00
30 lines
731 B
Text
30 lines
731 B
Text
--source include/have_tokudb.inc
|
|
#
|
|
#test update multiple
|
|
#
|
|
#
|
|
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS foo;
|
|
--enable_warnings
|
|
|
|
set session tokudb_prelock_empty=0;
|
|
|
|
create table foo (a int, b int, c int, primary key (a), key (b) clustering=yes);
|
|
insert into foo values (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5);
|
|
|
|
--echo # Both explains should use primary key;
|
|
explain select * from foo;
|
|
explain select a from foo;
|
|
DROP table foo;
|
|
|
|
create table foo (a int, b int, c int, key (b) clustering=yes, primary key (a));
|
|
insert into foo values (1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5);
|
|
|
|
--echo # Both explains should use primary key;
|
|
explain select * from foo;
|
|
explain select a from foo;
|
|
|
|
DROP TABLE foo;
|
|
|