Skip to content

Commit

Permalink
MDEV-26929: Make the main testsuite runnable with optimizer trace ena…
Browse files Browse the repository at this point in the history
…bled

Part#2: check that compile-time default @@optimizer_trace is correct.
  • Loading branch information
spetrunia committed Oct 29, 2021
1 parent 1fdac57 commit d352bc5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mysql-test/main/opt_trace_default.result
@@ -0,0 +1,8 @@
# 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';
global_value_origin default_value
COMPILE-TIME enabled=off
11 changes: 11 additions & 0 deletions 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';

0 comments on commit d352bc5

Please sign in to comment.