mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
DB-739 add test cases
This commit is contained in:
parent
de3cd3e182
commit
2412e51043
6 changed files with 300125 additions and 0 deletions
100013
mysql-test/suite/tokudb.bugs/r/db739_insert.result
Normal file
100013
mysql-test/suite/tokudb.bugs/r/db739_insert.result
Normal file
File diff suppressed because it is too large
Load diff
100014
mysql-test/suite/tokudb.bugs/r/db739_replace.result
Normal file
100014
mysql-test/suite/tokudb.bugs/r/db739_replace.result
Normal file
File diff suppressed because it is too large
Load diff
100013
mysql-test/suite/tokudb.bugs/r/db739_upsert.result
Normal file
100013
mysql-test/suite/tokudb.bugs/r/db739_upsert.result
Normal file
File diff suppressed because it is too large
Load diff
28
mysql-test/suite/tokudb.bugs/t/db739_insert.test
Normal file
28
mysql-test/suite/tokudb.bugs/t/db739_insert.test
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
source include/have_tokudb.inc;
|
||||||
|
set default_storage_engine=tokudb;
|
||||||
|
disable_warnings;
|
||||||
|
drop table if exists t;
|
||||||
|
enable_warnings;
|
||||||
|
create table t (
|
||||||
|
id bigint not null,
|
||||||
|
a bigint not null default 0,
|
||||||
|
b bigint not null default 0,
|
||||||
|
c bigint not null default 0,
|
||||||
|
primary key(id, a)
|
||||||
|
);
|
||||||
|
|
||||||
|
set tokudb_commit_sync=0;
|
||||||
|
let $id=0;
|
||||||
|
while ($id < 1000) {
|
||||||
|
let $a=0;
|
||||||
|
while ($a < 100) {
|
||||||
|
eval insert into t (id,a) values ($id,$a);
|
||||||
|
inc $a;
|
||||||
|
}
|
||||||
|
inc $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
delete from t where id=404;
|
||||||
|
insert into t values (404,0,0,0);
|
||||||
|
|
||||||
|
drop table t;
|
29
mysql-test/suite/tokudb.bugs/t/db739_replace.test
Normal file
29
mysql-test/suite/tokudb.bugs/t/db739_replace.test
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
source include/have_tokudb.inc;
|
||||||
|
set default_storage_engine=tokudb;
|
||||||
|
disable_warnings;
|
||||||
|
drop table if exists t;
|
||||||
|
enable_warnings;
|
||||||
|
create table t (
|
||||||
|
id bigint not null,
|
||||||
|
a bigint not null default 0,
|
||||||
|
b bigint not null default 0,
|
||||||
|
c bigint not null default 0,
|
||||||
|
primary key(id, a)
|
||||||
|
);
|
||||||
|
|
||||||
|
set tokudb_commit_sync=0;
|
||||||
|
let $id=0;
|
||||||
|
while ($id < 1000) {
|
||||||
|
let $a=0;
|
||||||
|
while ($a < 100) {
|
||||||
|
eval insert into t (id,a) values ($id,$a);
|
||||||
|
inc $a;
|
||||||
|
}
|
||||||
|
inc $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
delete from t where id=404;
|
||||||
|
set tokudb_pk_insert_mode=2;
|
||||||
|
replace into t values (404,0,0,0);
|
||||||
|
|
||||||
|
drop table t;
|
28
mysql-test/suite/tokudb.bugs/t/db739_upsert.test
Normal file
28
mysql-test/suite/tokudb.bugs/t/db739_upsert.test
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
source include/have_tokudb.inc;
|
||||||
|
set default_storage_engine=tokudb;
|
||||||
|
disable_warnings;
|
||||||
|
drop table if exists t;
|
||||||
|
enable_warnings;
|
||||||
|
create table t (
|
||||||
|
id bigint not null,
|
||||||
|
a bigint not null default 0,
|
||||||
|
b bigint not null default 0,
|
||||||
|
c bigint not null default 0,
|
||||||
|
primary key(id, a)
|
||||||
|
);
|
||||||
|
|
||||||
|
set tokudb_commit_sync=0;
|
||||||
|
let $id=0;
|
||||||
|
while ($id < 1000) {
|
||||||
|
let $a=0;
|
||||||
|
while ($a < 100) {
|
||||||
|
eval insert into t (id,a) values ($id,$a);
|
||||||
|
inc $a;
|
||||||
|
}
|
||||||
|
inc $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
delete from t where id=404;
|
||||||
|
insert into t values (404,0,0,0) on duplicate key update b=b+1;
|
||||||
|
|
||||||
|
drop table t;
|
Loading…
Reference in a new issue