1
# This is a test of various SQL statements
2
# and looks at the statement and transaction
3
# boundaries (start/end) to ensure they are sane
7
# Expect 0 commit count since nothing
10
SHOW STATUS LIKE 'Handler_commit%';
14
# Expect 0 commit count since nothing
15
# has yet been committed...
17
SHOW STATUS LIKE 'Handler_commit%';
19
DROP SCHEMA IF EXISTS boundaries;
21
# Expect 1 commit count since above DROP SCHEMA
22
# will implicitly call COMMIT.
24
# When we get transactional DDL, should be 0.
25
SHOW STATUS LIKE 'Handler_commit%';
29
# Expect 1 commit count since
30
# an explicit call to COMMIT was made
31
# even though nothing was changed...
33
SHOW STATUS LIKE 'Handler_commit%';
40
SHOW STATUS LIKE 'Handler_commit%';
42
DROP SCHEMA IF EXISTS boundaries;
45
SHOW STATUS LIKE 'Handler_commit%';
46
CREATE TABLE commit_test (a int);
47
SHOW STATUS LIKE 'Handler_commit%';
48
INSERT into commit_test VALUES (10);
49
SHOW STATUS LIKE 'Handler_commit%';
50
INSERT into commit_test VALUES (10), (20);
51
SHOW STATUS LIKE 'Handler_commit%';
52
INSERT into commit_test VALUES (10);
53
SHOW STATUS LIKE 'Handler_commit%';
57
INSERT into commit_test VALUES (10);
58
SHOW STATUS LIKE 'Handler_commit%';
62
SHOW STATUS LIKE 'Handler_commit%';
65
INSERT into commit_test VALUES (10);
66
SHOW STATUS LIKE 'Handler_commit%';
70
SHOW STATUS LIKE 'Handler_commit%';
74
INSERT into commit_test VALUES (10);
75
SHOW STATUS LIKE 'Handler_commit%';
78
SHOW STATUS LIKE 'Handler_commit%';
81
INSERT into commit_test VALUES (10);
82
INSERT into commit_test VALUES (10);
85
SHOW STATUS LIKE 'Handler_commit%';
86
drop table commit_test;
87
SHOW STATUS LIKE 'Handler_commit%';