mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
2b2ae926f4
if binlog_format=mixed Addition to fix for BUG#34768: fixed test case failures discovered by pushbuild. mysql-test/suite/binlog/r/binlog_stm_ps.result: Fixed binlog_stm_ps failure when binlog format is statement: - this test case makes sence only if binlog format is statement, thus execute it only in this mode; - added a warning that insert ... select ... limit is not safe to execute in statement mode. mysql-test/suite/binlog/t/binlog_stm_ps.test: Fixed binlog_stm_ps failure when binlog format is statement: - this test case makes sence only if binlog format is statement, thus execute it only in this mode; - added a warning that insert ... select ... limit is not safe to execute in statement mode. mysql-test/suite/rpl/t/rpl_optimize.test: rpl_optimize test may be executed in various binlog format modes. In statement mode delete ... limit issues a warning, in mixed and row modes it does not. Fixed a test case so it is still possible to execute it in all binlog format modes by ignoring delete ... limit warnings. mysql-test/suite/rpl/t/rpl_user_variables.test: rpl_user_variables test may be executed in various binlog format modes. In statement mode insert ... select ... limit issues a warning, in mixed and row modes it does not. Fixed a test case so it is still possible to execute it in all binlog format modes by ignoring insert ... select ... limit warnings.
26 lines
701 B
Text
26 lines
701 B
Text
# This test is to verify replication with PS
|
|
|
|
-- source include/not_embedded.inc
|
|
-- source include/have_binlog_format_statement.inc
|
|
|
|
-- 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;
|