From 4e14e0a35d97dad54d83a13bd03588ae1c42160d Mon Sep 17 00:00:00 2001 From: "aelkin/elkin@dsl-hkigw8-febefb00-148.dhcp.inet.fi" <> Date: Mon, 23 Oct 2006 15:09:04 +0300 Subject: [PATCH] Bug #22762 create talbe if not exists like a-temp-table binlogged w/o "if not exists" Bug #22027 CREATE TABLE IF NOT EXISTS SELECT logged improperly with row-based binlog post-merge fix, also making results free from server's version number. --- mysql-test/extra/binlog_tests/binlog.test | 2 +- mysql-test/r/binlog_row_binlog.result | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mysql-test/extra/binlog_tests/binlog.test b/mysql-test/extra/binlog_tests/binlog.test index 82c09301110..48d9b859c26 100644 --- a/mysql-test/extra/binlog_tests/binlog.test +++ b/mysql-test/extra/binlog_tests/binlog.test @@ -69,7 +69,7 @@ create table if not exists t3 like tt1; --replace_column 2 # 5 # --replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\// -show binlog events; +show binlog events from 102; drop table t1,t2,t3,tt1; -- source extra/binlog_tests/binlog_insert_delayed.test diff --git a/mysql-test/r/binlog_row_binlog.result b/mysql-test/r/binlog_row_binlog.result index 785a0c33db9..aee270bd7f6 100644 --- a/mysql-test/r/binlog_row_binlog.result +++ b/mysql-test/r/binlog_row_binlog.result @@ -249,9 +249,8 @@ create table t1 (a int); create table if not exists t2 select * from t1; create temporary table tt1 (a int); create table if not exists t3 like tt1; -show binlog events; +show binlog events from 102; Log_name Pos Event_type Server_id End_log_pos Info -master-bin.000001 # Format_desc 1 # Server ver: 5.1.12-beta-debug-log, Binlog ver: 4 master-bin.000001 # Query 1 # use `test`; create table t1 (id tinyint auto_increment primary key) master-bin.000001 # Table_map 1 # table_id: # (test.t1) master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F