1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

spurious binlog error code logging on temp table auto-drop fixed

added a new replication test


sql/sql_base.cc:
  f
This commit is contained in:
unknown
2002-06-05 20:16:44 -06:00
parent 32113efe2a
commit 40a7f1d30a
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
n m
1 2
n
45

View File

@@ -0,0 +1,21 @@
source include/master-slave.inc;
connection master;
use test;
drop database if exists d1;
create database d1;
create table d1.t1 ( n int);
alter table d1.t1 add m int;
insert into d1.t1 values (1,2);
create table d1.t2 (n int);
insert into d1.t2 values (45);
rename table d1.t2 to d1.t3, d1.t1 to d1.t2;
save_master_pos;
connection slave;
sync_with_master;
select * from d1.t2;
select * from d1.t3;
connection master;
drop database d1;
save_master_pos;
connection slave;
sync_with_master;

View File

@@ -546,6 +546,7 @@ void close_temporary_tables(THD *thd)
*--end = 0; // Remove last ',' *--end = 0; // Remove last ','
thd->query_length = (uint)(end-query); thd->query_length = (uint)(end-query);
Query_log_event qinfo(thd, query); Query_log_event qinfo(thd, query);
qinfo.error_code=0;
mysql_bin_log.write(&qinfo); mysql_bin_log.write(&qinfo);
thd->query_length = save_query_len; thd->query_length = save_query_len;
} }