2
CREATE TABLE t1 (a int);
3
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
5
INSERT INTO t1 values (1);
7
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED;
12
INSERT INTO t1 values (2);
23
SELECT * from t1 order by a;
29
SELECT * from t1 order by a;
36
SHOW STATUS LIKE 'Handler_commit%';
40
SHOW STATUS LIKE 'Handler_commit%';
44
DROP SCHEMA IF EXISTS boundaries;
46
Note 1008 Can't drop schema 'boundaries'; schema doesn't exist
47
SHOW STATUS LIKE 'Handler_commit%';
51
SHOW STATUS LIKE 'Handler_commit%';
55
SHOW STATUS LIKE 'Handler_commit%';
60
DROP SCHEMA IF EXISTS boundaries;
62
Note 1008 Can't drop schema 'boundaries'; schema doesn't exist
63
SHOW STATUS LIKE 'Handler_commit%';
66
CREATE TABLE commit_test (a int);
67
SHOW STATUS LIKE 'Handler_commit%';
70
INSERT into commit_test VALUES (10);
71
SHOW STATUS LIKE 'Handler_commit%';
74
INSERT into commit_test VALUES (10), (20);
75
SHOW STATUS LIKE 'Handler_commit%';
78
INSERT into commit_test VALUES (10);
79
SHOW STATUS LIKE 'Handler_commit%';
83
INSERT into commit_test VALUES (10);
84
SHOW STATUS LIKE 'Handler_commit%';
88
SHOW STATUS LIKE 'Handler_commit%';
92
INSERT into commit_test VALUES (10);
93
SHOW STATUS LIKE 'Handler_commit%';
97
SHOW STATUS LIKE 'Handler_commit%';
101
INSERT into commit_test VALUES (10);
102
SHOW STATUS LIKE 'Handler_commit%';
106
SHOW STATUS LIKE 'Handler_commit%';
110
INSERT into commit_test VALUES (10);
111
INSERT into commit_test VALUES (10);
112
SHOW STATUS LIKE 'Handler_commit%';
116
drop table commit_test;
117
SHOW STATUS LIKE 'Handler_commit%';
120
DROP TABLE IF EXISTS t1_trx, t1_non_trx;
122
CREATE TABLE t1_trx (
123
k VARCHAR(10) NOT NULL
124
, v VARCHAR(10) NOT NULL
127
CREATE TEMPORARY TABLE t1_non_trx (
128
k VARCHAR(10) NOT NULL
129
, v VARCHAR(10) NOT NULL
133
INSERT INTO t1_trx VALUES ('key1','value1');
134
INSERT INTO t1_trx VALUES ('key2','value2');
135
INSERT INTO t1_non_trx VALUES ('key1','value1');
136
INSERT INTO t1_non_trx VALUES ('key2','value2');
139
Warning 1196 Some non-transactional changed tables couldn't be rolled back
140
Expected warning about non-trx data changes not being rolled back
141
SELECT * FROM t1_trx;
143
SELECT * FROM t1_non_trx;
148
INSERT INTO t1_trx VALUES ('key1','value1');
149
INSERT INTO t1_trx VALUES ('key2','value2');
150
SELECT t1_trx.k, t1_trx.v
152
INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
157
SELECT t1_trx.k, t1_trx.v
159
INNER JOIN t1_non_trx ON t1_trx.k = t1_non_trx.k;
163
DROP TABLE t1_non_trx;