mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
[t:3518], add another test
git-svn-id: file:///svn/mysql/tests/mysql-test@34505 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
26ac412c04
commit
b76c72bfdf
2 changed files with 74 additions and 0 deletions
36
mysql-test/suite/tokudb.bugs/r/3518.result
Normal file
36
mysql-test/suite/tokudb.bugs/r/3518.result
Normal file
|
@ -0,0 +1,36 @@
|
|||
SET STORAGE_ENGINE = 'tokudb';
|
||||
DROP TABLE IF EXISTS foo;
|
||||
set session tokudb_prelock_empty=off;
|
||||
create table foo (a int, b bigint, primary key (a))engine=TokuDB;
|
||||
insert into foo values (1,10),(2,20);
|
||||
select * from foo;
|
||||
a b
|
||||
1 10
|
||||
2 20
|
||||
alter table foo add clustering index (b);
|
||||
insert into foo values (3,30);
|
||||
select * from foo where b >=10;
|
||||
a b
|
||||
1 10
|
||||
2 20
|
||||
3 30
|
||||
drop table foo;
|
||||
create table foo (a int, b bigint)engine=TokuDB;
|
||||
insert into foo values (1,10),(2,20);
|
||||
select * from foo;
|
||||
a b
|
||||
1 10
|
||||
2 20
|
||||
alter table foo add clustering index (b);
|
||||
insert into foo values (3,30);
|
||||
select * from foo where b >=10;
|
||||
a b
|
||||
1 10
|
||||
2 20
|
||||
3 30
|
||||
drop table foo;
|
||||
create table foo (a int, b longblob, clustering key (a));
|
||||
insert into foo values (1,"aa");
|
||||
insert into foo values (2,repeat('b', 100000));
|
||||
insert into foo values (3,"bbb");
|
||||
DROP TABLE foo;
|
38
mysql-test/suite/tokudb.bugs/t/3518.test
Normal file
38
mysql-test/suite/tokudb.bugs/t/3518.test
Normal file
|
@ -0,0 +1,38 @@
|
|||
--source include/have_tokudb.inc
|
||||
#
|
||||
# Record inconsistency.
|
||||
#
|
||||
#
|
||||
SET STORAGE_ENGINE = 'tokudb';
|
||||
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS foo;
|
||||
--enable_warnings
|
||||
set session tokudb_prelock_empty=off;
|
||||
|
||||
create table foo (a int, b bigint, primary key (a))engine=TokuDB;
|
||||
insert into foo values (1,10),(2,20);
|
||||
select * from foo;
|
||||
alter table foo add clustering index (b);
|
||||
insert into foo values (3,30);
|
||||
select * from foo where b >=10;
|
||||
drop table foo;
|
||||
|
||||
create table foo (a int, b bigint)engine=TokuDB;
|
||||
insert into foo values (1,10),(2,20);
|
||||
select * from foo;
|
||||
alter table foo add clustering index (b);
|
||||
insert into foo values (3,30);
|
||||
select * from foo where b >=10;
|
||||
drop table foo;
|
||||
|
||||
|
||||
# just make sure nothing crashes
|
||||
create table foo (a int, b longblob, clustering key (a));
|
||||
insert into foo values (1,"aa");
|
||||
insert into foo values (2,repeat('b', 100000));
|
||||
insert into foo values (3,"bbb");
|
||||
|
||||
# Final cleanup.
|
||||
DROP TABLE foo;
|
||||
|
Loading…
Reference in a new issue