Commit 8ff66501 authored by Jan Lindström's avatar Jan Lindström

Forgot to add test file.

parent 4472a0ef
SET @start_global_value = @@global.innodb_stats_traditional; SET @start_global_value = @@global.innodb_stats_traditional;
SELECT @start_global_value; SELECT @start_global_value;
@start_global_value @start_global_value
0 1
Valid values are 'ON' and 'OFF' Valid values are 'ON' and 'OFF'
select @@global.innodb_stats_traditional in (0, 1); select @@global.innodb_stats_traditional in (0, 1);
@@global.innodb_stats_traditional in (0, 1) @@global.innodb_stats_traditional in (0, 1)
1 1
select @@global.innodb_stats_traditional; select @@global.innodb_stats_traditional;
@@global.innodb_stats_traditional @@global.innodb_stats_traditional
0 1
select @@session.innodb_stats_traditional; select @@session.innodb_stats_traditional;
ERROR HY000: Variable 'innodb_stats_traditional' is a GLOBAL variable ERROR HY000: Variable 'innodb_stats_traditional' is a GLOBAL variable
show global variables like 'innodb_stats_traditional'; show global variables like 'innodb_stats_traditional';
Variable_name Value Variable_name Value
innodb_stats_traditional OFF innodb_stats_traditional ON
show session variables like 'innodb_stats_traditional'; show session variables like 'innodb_stats_traditional';
Variable_name Value Variable_name Value
innodb_stats_traditional OFF innodb_stats_traditional ON
select * from information_schema.global_variables where variable_name='innodb_stats_traditional'; select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
INNODB_STATS_TRADITIONAL OFF INNODB_STATS_TRADITIONAL ON
select * from information_schema.session_variables where variable_name='innodb_stats_traditional'; select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
VARIABLE_NAME VARIABLE_VALUE VARIABLE_NAME VARIABLE_VALUE
INNODB_STATS_TRADITIONAL OFF INNODB_STATS_TRADITIONAL ON
set global innodb_stats_traditional='OFF'; set global innodb_stats_traditional='OFF';
select @@global.innodb_stats_traditional; select @@global.innodb_stats_traditional;
@@global.innodb_stats_traditional @@global.innodb_stats_traditional
...@@ -89,4 +89,4 @@ ERROR 42000: Variable 'innodb_stats_traditional' can't be set to the value of 'A ...@@ -89,4 +89,4 @@ ERROR 42000: Variable 'innodb_stats_traditional' can't be set to the value of 'A
SET @@global.innodb_stats_traditional = @start_global_value; SET @@global.innodb_stats_traditional = @start_global_value;
SELECT @@global.innodb_stats_traditional; SELECT @@global.innodb_stats_traditional;
@@global.innodb_stats_traditional @@global.innodb_stats_traditional
0 1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment