polardbxengine/mysql-test/include/not_binlog_format_statement...

18 lines
474 B
PHP

# ==== Purpose ====
#
# Ensure that the server is running without binlog_format STATEMENT when
# binlogging is ON. And, if binlogging is OFF, don't check for binlog_format.
#
# ==== Usage ====
#
# source include/not_binlog_format_statement.inc;
--let $_check_log_bin= query_get_value(SHOW GLOBAL VARIABLES LIKE 'log_bin', Value, 1)
if ($_check_log_bin == ON)
{
if (`SELECT @@binlog_format = 'STATEMENT'`)
{
--skip Test cannot run with binlog_format STATEMENT
}
}