| 1 |
# Start server with MyISAM |
| 2 |
--source include/force_myisam_default.inc |
| 3 |
|
| 4 |
# Skip the test if MyISAM is not available |
| 5 |
--source include/have_myisam.inc |
| 6 |
|
| 7 |
--disable_query_log |
| 8 |
if (`select locate('semijoin', @@optimizer_switch) > 0`) |
| 9 |
{ |
| 10 |
set optimizer_switch='semijoin=off'; |
| 11 |
} |
| 12 |
if (`select locate('materialization', @@optimizer_switch) > 0`) |
| 13 |
{ |
| 14 |
set optimizer_switch='materialization=off'; |
| 15 |
} |
| 16 |
if (`select locate('index_condition_pushdown', @@optimizer_switch) > 0`) |
| 17 |
{ |
| 18 |
set optimizer_switch='index_condition_pushdown=off'; |
| 19 |
} |
| 20 |
if (`select locate('mrr', @@optimizer_switch) > 0`) |
| 21 |
{ |
| 22 |
set optimizer_switch='mrr=off'; |
| 23 |
} |
| 24 |
--enable_query_log |
| 25 |
|
| 26 |
# Test requires: sp-protocol/ps-protocol/view-protocol/cursor-protocol disabled |
| 27 |
--source include/no_protocol.inc |
| 28 |
|
| 29 |
# The main testing script |
| 30 |
--source suite/opt_trace/include/general.inc |