# The include statement below is a temp one for tests that are yet to #be ported to run with InnoDB, #but needs to be kept for tests that would need MyISAM in future. --source include/no_valgrind_without_big.inc --source include/force_myisam_default.inc --source include/have_myisam.inc # Skipping the test when binlog_format=STATEMENT due to unsafe statements: # unsafe system function like rand(), LIMIT clause. --source include/not_binlog_format_statement.inc # The test fails with log_bin ON and binlog_format=ROW due to Bug#22841208. # Temporarily, overriding binlog_format to MIXED when log_bin is ON. if (`SELECT @@global.log_bin AND @@global.binlog_format = 'ROW'`) { --disable_query_log SET @saved_binlog_format= @@SESSION.binlog_format; SET SESSION binlog_format= MIXED; --enable_query_log } # # Run subquery_sj.inc with semijoin and turn off all strategies, but Materialization # set optimizer_switch='semijoin=on,materialization=on'; --disable_query_log if (`select locate('loosescan', @@optimizer_switch) > 0`) { set optimizer_switch='loosescan=off'; } if (`select locate('firstmatch', @@optimizer_switch) > 0`) { set optimizer_switch='firstmatch=off'; } if (`select locate('duplicateweedout', @@optimizer_switch) > 0`) { set optimizer_switch='duplicateweedout=off'; } if (`select locate('index_condition_pushdown', @@optimizer_switch) > 0`) { set optimizer_switch='index_condition_pushdown=off'; } if (`select locate('mrr', @@optimizer_switch) > 0`) { set optimizer_switch='mrr=off'; } --enable_query_log --source include/subquery_sj.inc set optimizer_switch=default; if (`SELECT @@global.log_bin AND @@global.binlog_format = 'ROW'`) { --disable_query_log SET SESSION binlog_format= @saved_binlog_format; --enable_query_log }