mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-26929: Make the main testsuite runnable with optimizer trace enabled
Part#2: check that compile-time default @@optimizer_trace is correct.
This commit is contained in:
11
mysql-test/main/opt_trace_default.test
Normal file
11
mysql-test/main/opt_trace_default.test
Normal file
@ -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';
|
Reference in New Issue
Block a user