2007-05-25 14:24:45 +02:00
|
|
|
# This test is to verify replication with PS
|
|
|
|
|
2007-06-14 17:33:57 +02:00
|
|
|
-- source include/not_embedded.inc
|
2008-03-25 14:28:12 +01:00
|
|
|
-- source include/have_binlog_format_statement.inc
|
2007-05-25 14:24:45 +02:00
|
|
|
|
|
|
|
-- disable_query_log
|
|
|
|
reset master; # get rid of previous tests binlog
|
|
|
|
-- enable_query_log
|
|
|
|
|
|
|
|
--disable_warnings
|
|
|
|
drop table if exists t1;
|
|
|
|
--enable_warnings
|
|
|
|
reset master;
|
|
|
|
|
|
|
|
#
|
|
|
|
# Bug #26842: master binary log contains invalid queries - replication fails
|
|
|
|
#
|
|
|
|
create table t1 (a int);
|
|
|
|
prepare s from "insert into t1 values (@a),(?)";
|
|
|
|
set @a=98; execute s using @a;
|
|
|
|
prepare s from "insert into t1 values (?)";
|
|
|
|
set @a=99; execute s using @a;
|
|
|
|
prepare s from "insert into t1 select 100 limit ?";
|
|
|
|
set @a=100; execute s using @a;
|
|
|
|
source include/show_binlog_events.inc;
|
|
|
|
drop table t1;
|