mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Forgot to add test file.
This commit is contained in:
@ -1,28 +1,28 @@
|
||||
SET @start_global_value = @@global.innodb_stats_traditional;
|
||||
SELECT @start_global_value;
|
||||
@start_global_value
|
||||
0
|
||||
1
|
||||
Valid values are 'ON' and 'OFF'
|
||||
select @@global.innodb_stats_traditional in (0, 1);
|
||||
@@global.innodb_stats_traditional in (0, 1)
|
||||
1
|
||||
select @@global.innodb_stats_traditional;
|
||||
@@global.innodb_stats_traditional
|
||||
0
|
||||
1
|
||||
select @@session.innodb_stats_traditional;
|
||||
ERROR HY000: Variable 'innodb_stats_traditional' is a GLOBAL variable
|
||||
show global variables like 'innodb_stats_traditional';
|
||||
Variable_name Value
|
||||
innodb_stats_traditional OFF
|
||||
innodb_stats_traditional ON
|
||||
show session variables like 'innodb_stats_traditional';
|
||||
Variable_name Value
|
||||
innodb_stats_traditional OFF
|
||||
innodb_stats_traditional ON
|
||||
select * from information_schema.global_variables where variable_name='innodb_stats_traditional';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_STATS_TRADITIONAL OFF
|
||||
INNODB_STATS_TRADITIONAL ON
|
||||
select * from information_schema.session_variables where variable_name='innodb_stats_traditional';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_STATS_TRADITIONAL OFF
|
||||
INNODB_STATS_TRADITIONAL ON
|
||||
set global innodb_stats_traditional='OFF';
|
||||
select @@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
|
||||
SET @@global.innodb_stats_traditional = @start_global_value;
|
||||
SELECT @@global.innodb_stats_traditional;
|
||||
@@global.innodb_stats_traditional
|
||||
0
|
||||
1
|
||||
|
Reference in New Issue
Block a user