Commit 7890e8b6 authored by Sven Sandberg's avatar Sven Sandberg

BUG#39934: Slave stops for engine that only support row-based logging

post-push fixes. the test case tried to use a udf that had not been loaded. removed the udf.
parent ae107c55
...@@ -70,7 +70,7 @@ SET @@session.binlog_format = MIXED; ...@@ -70,7 +70,7 @@ SET @@session.binlog_format = MIXED;
INSERT INTO t_stmt VALUES (UUID()); INSERT INTO t_stmt VALUES (UUID());
ERROR HY000: Cannot execute statement: binlogging of unsafe statement is impossible when storage engine is limited to statement-logging and BINLOG_FORMAT = MIXED. Reason for unsafeness: Statement uses a system function whose value may differ on slave. ERROR HY000: Cannot execute statement: binlogging of unsafe statement is impossible when storage engine is limited to statement-logging and BINLOG_FORMAT = MIXED. Reason for unsafeness: Statement uses a system function whose value may differ on slave.
* Multi-unsafe statement and stmt-only engine * Multi-unsafe statement and stmt-only engine
INSERT DELAYED INTO t_double_autoinc SELECT CONCAT(UUID(), @@hostname, myfunc_int(), NULL) FROM mysql.general_log LIMIT 1; INSERT DELAYED INTO t_double_autoinc SELECT CONCAT(UUID(), @@hostname, NULL) FROM mysql.general_log LIMIT 1;
ERROR HY000: Cannot execute statement: binlogging of unsafe statement is impossible when storage engine is limited to statement-logging and BINLOG_FORMAT = MIXED. Reason for unsafeness: Statement uses a LIMIT clause. This is unsafe because the set of rows included cannot be predicted. ERROR HY000: Cannot execute statement: binlogging of unsafe statement is impossible when storage engine is limited to statement-logging and BINLOG_FORMAT = MIXED. Reason for unsafeness: Statement uses a LIMIT clause. This is unsafe because the set of rows included cannot be predicted.
---- binlog_format=statement ---- ---- binlog_format=statement ----
[on slave] [on slave]
...@@ -125,6 +125,8 @@ set global sql_slave_skip_counter=1; ...@@ -125,6 +125,8 @@ set global sql_slave_skip_counter=1;
include/start_slave.inc include/start_slave.inc
[on master] [on master]
==== Clean up ==== ==== Clean up ====
DROP TRIGGER trig_autoinc;
DROP TRIGGER trig_double_autoinc;
DROP TABLE t, t_self_logging, t_row, t_stmt, t_slave_stmt, t_autoinc, t_double_autoinc; DROP TABLE t, t_self_logging, t_row, t_stmt, t_slave_stmt, t_autoinc, t_double_autoinc;
DROP DATABASE other; DROP DATABASE other;
SET @@global.binlog_format = @old_binlog_format; SET @@global.binlog_format = @old_binlog_format;
......
...@@ -139,11 +139,11 @@ SET @@session.binlog_format = MIXED; ...@@ -139,11 +139,11 @@ SET @@session.binlog_format = MIXED;
--error ER_BINLOG_UNSAFE_AND_STMT_ENGINE --error ER_BINLOG_UNSAFE_AND_STMT_ENGINE
INSERT INTO t_stmt VALUES (UUID()); INSERT INTO t_stmt VALUES (UUID());
# Concatenate three unsafe values, and then concatenate NULL to # Concatenate two unsafe values, and then concatenate NULL to
# that so that the result is NULL and we instead use autoinc. # that so that the result is NULL and we instead use autoinc.
--echo * Multi-unsafe statement and stmt-only engine --echo * Multi-unsafe statement and stmt-only engine
--error ER_BINLOG_UNSAFE_AND_STMT_ENGINE --error ER_BINLOG_UNSAFE_AND_STMT_ENGINE
INSERT DELAYED INTO t_double_autoinc SELECT CONCAT(UUID(), @@hostname, myfunc_int(), NULL) FROM mysql.general_log LIMIT 1; INSERT DELAYED INTO t_double_autoinc SELECT CONCAT(UUID(), @@hostname, NULL) FROM mysql.general_log LIMIT 1;
--echo ---- binlog_format=statement ---- --echo ---- binlog_format=statement ----
...@@ -228,6 +228,8 @@ INSERT INTO t VALUES (UUID()); ...@@ -228,6 +228,8 @@ INSERT INTO t VALUES (UUID());
--echo ==== Clean up ==== --echo ==== Clean up ====
DROP TRIGGER trig_autoinc;
DROP TRIGGER trig_double_autoinc;
DROP TABLE t, t_self_logging, t_row, t_stmt, t_slave_stmt, t_autoinc, t_double_autoinc; DROP TABLE t, t_self_logging, t_row, t_stmt, t_slave_stmt, t_autoinc, t_double_autoinc;
DROP DATABASE other; DROP DATABASE other;
SET @@global.binlog_format = @old_binlog_format; SET @@global.binlog_format = @old_binlog_format;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment