Bug #52984 non-binlogged unsafe statement causes switch to row if binlog_format=mixed
| Submitted: | 20 Apr 2010 13:02 | Modified: | 20 Apr 2010 13:31 |
|---|---|---|---|
| Reporter: | Sven Sandberg | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
| Version: | 5.1+, mysql-trunk | OS: | Any |
| Assigned to: | Assigned Account | CPU Architecture: | Any |
| Tags: | binlog_format, mixed, temporary tables | ||
[20 Apr 2010 13:02]
Sven Sandberg
[20 Apr 2010 13:31]
Valeriy Kravchuk
Thank you for the problem report. Verified just as described, also - with recent mysql-trunk tree: openxs@ubuntu:/home2/openxs/dbs/trunk/mysql-test$ ./mtr --mysqld=--binlog-format=MIXED bug52984 Logging: ./mtr --mysqld=--binlog-format=MIXED bug52984 100420 16:28:13 [Note] Buffered information: Performance schema disabled (reason: start parameters). 100420 16:28:13 [Note] Plugin 'FEDERATED' is disabled. 100420 16:28:13 [Note] Plugin 'ndbcluster' is disabled. MySQL Version 5.5.5 Using binlog format 'MIXED' Checking supported features... - using ndbcluster when necessary, mysqld supports it - SSL connections supported - binaries are debug compiled Collecting tests... vardir: /home2/openxs/dbs/trunk/mysql-test/var Checking leftover processes... Removing old var directory... Creating var directory '/home2/openxs/dbs/trunk/mysql-test/var'... Installing system database... Using server port 45576 worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009 ============================================================================== TEST RESULT TIME (ms) ------------------------------------------------------------ main.bug52984 [ fail ] Test ended at 2010-04-20 16:28:16 CURRENT_TEST: main.bug52984 --- /home2/openxs/dbs/trunk/mysql-test/r/bug52984.result 2010-04-20 16:24:10.000000000 +0300 +++ /home2/openxs/dbs/trunk/mysql-test/r/bug52984.reject 2010-04-20 16:28:16.000000000 +0300 @@ -0,0 +1,25 @@ +stop slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +reset master; +reset slave; +drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; +start slave; +create table t1 (a int); +create temporary table t2 (a int); +insert into t1 values (1); +select version(); +version() +5.5.5-m3-debug-log +insert into t1 values (1); +show binlog events; +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 4 Format_desc 1 107 Server ver: 5.5.5-m3-debug-log, Binlog ver: 4 +master-bin.000001 107 Query 1 193 use `test`; create table t1 (a int) +master-bin.000001 193 Query 1 289 use `test`; create temporary table t2 (a int) +master-bin.000001 289 Query 1 357 BEGIN +master-bin.000001 357 Query 1 445 use `test`; insert into t1 values (1) +master-bin.000001 445 Query 1 514 COMMIT +master-bin.000001 514 Query 1 582 BEGIN +master-bin.000001 582 Table_map 1 623 table_id: 41 (test.t1) +master-bin.000001 623 Write_rows 1 657 table_id: 41 flags: STMT_END_F +master-bin.000001 657 Query 1 726 COMMIT
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.