Commit 47573cee authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: include/have_rbr_triggers.inc

this is always enabled now,
no need for a conditional
parent 7bf39888
if (`select count(*) = 0 from information_schema.session_variables where variable_name = 'slave_run_triggers_for_rbr'`)
{
skip RBR triggers are not available;
}
-- source include/have_binlog_format_row.inc
-- source include/have_rbr_triggers.inc
-- source include/have_innodb.inc
-- source include/master-slave.inc
......
SET @old_slave_run_triggers_for_rbr= @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= NO;
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
NO
SET @@global.slave_run_triggers_for_rbr= YES;
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
YES
SET @@global.slave_run_triggers_for_rbr= LOGGING;
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
LOGGING
SET @@global.slave_run_triggers_for_rbr= default;
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
NO
SET @@global.slave_run_triggers_for_rbr= 0;
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
NO
SET @@global.slave_run_triggers_for_rbr= 1;
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
YES
SET @@global.slave_run_triggers_for_rbr= 2;
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
LOGGING
SET @@global.slave_run_triggers_for_rbr= 3;
ERROR 42000: Variable 'slave_run_triggers_for_rbr' can't be set to the value of '3'
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
LOGGING
SET @@global.slave_run_triggers_for_rbr= "N";
ERROR 42000: Variable 'slave_run_triggers_for_rbr' can't be set to the value of 'N'
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
LOGGING
SET @@global.slave_run_triggers_for_rbr= -1;
ERROR 42000: Variable 'slave_run_triggers_for_rbr' can't be set to the value of '-1'
select @@global.slave_run_triggers_for_rbr;
@@global.slave_run_triggers_for_rbr
LOGGING
SET @@global.slave_run_triggers_for_rbr= @old_slave_run_triggers_for_rbr;
-- source include/have_rbr_triggers.inc
SET @old_slave_run_triggers_for_rbr= @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= NO;
select @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= YES;
select @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= LOGGING;
select @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= default;
select @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= 0;
select @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= 1;
select @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= 2;
select @@global.slave_run_triggers_for_rbr;
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.slave_run_triggers_for_rbr= 3;
select @@global.slave_run_triggers_for_rbr;
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.slave_run_triggers_for_rbr= "N";
select @@global.slave_run_triggers_for_rbr;
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.slave_run_triggers_for_rbr= -1;
select @@global.slave_run_triggers_for_rbr;
SET @@global.slave_run_triggers_for_rbr= @old_slave_run_triggers_for_rbr;
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