summaryrefslogtreecommitdiff
path: root/mysql-test/extra/binlog_tests/implicit.test
blob: de906fc0605b928b45aab389714587eddacbd355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# First part: outside a transaction
RESET MASTER;
eval $prepare;

INSERT INTO t1 VALUES (1);
source include/show_binlog_events.inc;
eval $statement;
source include/show_binlog_events.inc;
if ($cleanup) {
  eval $cleanup;
}

# Second part: inside a transaction
RESET MASTER;
eval $prepare;
BEGIN;
INSERT INTO t1 VALUES (2);
source include/show_binlog_events.inc;
eval $statement;
source include/show_binlog_events.inc;
INSERT INTO t1 VALUES (3);
source include/show_binlog_events.inc;
COMMIT;
source include/show_binlog_events.inc;
if ($cleanup) {
  eval $cleanup;
}