2009-09-23 13:20:48 +02:00
|
|
|
# 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;
|
2010-10-21 09:37:10 +02:00
|
|
|
if ($cleanup) {
|
2009-09-23 13:20:48 +02:00
|
|
|
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;
|
2010-10-21 09:37:10 +02:00
|
|
|
if ($cleanup) {
|
2009-09-23 13:20:48 +02:00
|
|
|
eval $cleanup;
|
|
|
|
}
|
|
|
|
|