| 1 |
# |
| 2 |
# Check if server has support for loading plugins |
| 3 |
# |
| 4 |
if (`SELECT @@have_dynamic_loading != 'YES'`) { |
| 5 |
--skip DDL rewriter plugin requires dynamic loading |
| 6 |
} |
| 7 |
|
| 8 |
# Test requires: sp-protocol/ps-protocol/view-protocol/cursor-protocol disabled |
| 9 |
--source include/no_protocol.inc |
| 10 |
--source include/no_opt_trace_protocol.inc |
| 11 |
--source include/no_explain_protocol.inc |
| 12 |
--source include/no_json_explain_protocol.inc |
| 13 |
|
| 14 |
# |
| 15 |
# Check if the variable DDL_REWRITER is set |
| 16 |
# |
| 17 |
if (!$DDL_REWRITER) { |
| 18 |
--skip DDL rewriter plugin requires the environment variable \$DDL_REWRITER to be set (normally done by mtr) |
| 19 |
} |
| 20 |
|
| 21 |
# |
| 22 |
# Check if --plugin-dir was setup |
| 23 |
# |
| 24 |
if (`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$DDL_REWRITER_OPT/'`) { |
| 25 |
--skip DDL rewriter plugin requires that --plugin-dir is set to the DDL rewriter plugin dir (either the .opt file does not contain \$DDL_REWRITER_OPT or another plugin is in use) |
| 26 |
} |
| 27 |
enable_query_log; |