Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-26929: Make the main testsuite runnable with optimizer trace ena…
…bled Part#2: check that compile-time default @@optimizer_trace is correct.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; |