1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-21 11:01:08 +03:00
Files
mariadb/mysql-test/suite/tokudb.nested_txn/r/begin.result
Rich Prohaska 626f9cb9d4 #4621 move tokudb.nested_txn mysql tests to common mysql test dir refs[t:4621]
git-svn-id: file:///svn/mysql/tests/mysql-test@40912 c7de825b-a66e-492c-adef-691d508d4ae1
2012-03-16 15:41:12 +00:00

159 lines
2.0 KiB
Plaintext
Executable File

SET STORAGE_ENGINE='TokuDB';
DROP TABLE IF EXISTS t1, t2;
CREATE TABLE t1 (a int);
begin;
insert into t1 values(1);
delete from t1 where a=1;
rollback;
select * from t1;
a
DROP table t1;
create table t1 (a int, b int, primary key (a));
begin;
insert into t1 values (1,10);
select * From t1;
a b
1 10
rollback;
select * From t1;
a b
begin;
insert into t1 values (1,10);
select * From t1;
a b
1 10
update t1 set b=b+5;
select * From t1;
a b
1 15
update t1 set b=b+5 where a=1;
select * from t1;
a b
1 20
rollback;
select * from t1;
a b
begin;
insert into t1 values (1,10),(2,20);
select * From t1;
a b
1 10
2 20
delete from t1 where a > 1;
select * from t1;
a b
1 10
rollback;
select * from t1;
a b
insert into t1 values (1,10),(2,20),(3,30);
select * from t1;
a b
1 10
2 20
3 30
rollback;
select * From t1;
a b
1 10
2 20
3 30
begin;
insert into t1 values (4,40),(5,50),(6,60);
select * from t1;
a b
1 10
2 20
3 30
4 40
5 50
6 60
commit;
select * from t1;
a b
1 10
2 20
3 30
4 40
5 50
6 60
begin;
insert into t1 values (7,70);
insert into t1 values (8,80), (9,90), (1,10), (10,100);
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
insert into t1 values (11,110);
rollback;
select * From t1;
a b
1 10
2 20
3 30
4 40
5 50
6 60
begin;
insert into t1 values (7,70);
insert into t1 values (8,80), (9,90), (1,10), (10,100);
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
insert into t1 values (11,110);
commit;
select * From t1;
a b
1 10
2 20
3 30
4 40
5 50
6 60
7 70
11 110
delete from t1;
alter table t1 add index (b);
insert ignore into t1 values (1,10),(2,20),(3,30),(1,10),(4,40);
select * From t1;
a b
1 10
2 20
3 30
4 40
begin;
insert ignore into t1 values (5,50),(3,30),(6,60),(7,70);
select * From t1;
a b
1 10
2 20
3 30
4 40
5 50
6 60
7 70
rollback;
select * from t1;
a b
1 10
2 20
3 30
4 40
begin;
insert ignore into t1 values (5,50),(3,30),(6,60),(7,70);
select * From t1;
a b
1 10
2 20
3 30
4 40
5 50
6 60
7 70
commit;
select * From t1;
a b
1 10
2 20
3 30
4 40
5 50
6 60
7 70
drop table t1;