summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/opt_trace_default.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/opt_trace_default.test')
-rw-r--r--mysql-test/main/opt_trace_default.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/main/opt_trace_default.test b/mysql-test/main/opt_trace_default.test
new file mode 100644
index 00000000..221b68a6
--- /dev/null
+++ b/mysql-test/main/opt_trace_default.test
@@ -0,0 +1,11 @@
+
+if (`SELECT 'COMPILE-TIME'<>GLOBAL_VALUE_ORIGIN from INFORMATION_SCHEMA.SYSTEM_VARIABLES where variable_name='optimizer_trace'`) {
+--Skip Needs optimizer_trace default to be the compile-time default
+}
+
+--echo # Verify that compile-time default for optimizer trace is OFF (enabled=off).
+select
+ global_value_origin,
+ default_value
+from
+ INFORMATION_SCHEMA.SYSTEM_VARIABLES where variable_name='optimizer_trace';