SELECT @@GLOBAL.innodb_log_arch_expire_sec INTO @save;
SELECT @@GLOBAL.innodb_log_arch_expire_sec;
@@GLOBAL.innodb_log_arch_expire_sec
0
0 Expected
SET @@GLOBAL.innodb_log_arch_expire_sec=1;
SELECT @@GLOBAL.innodb_log_arch_expire_sec;
@@GLOBAL.innodb_log_arch_expire_sec
1
1 Expected
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='innodb_log_arch_expire_sec';
VARIABLE_VALUE
1
1 Expected
SELECT @@innodb_log_arch_expire_sec;
@@innodb_log_arch_expire_sec
1
1 Expected
SELECT @@innodb_log_arch_expire_sec;
@@innodb_log_arch_expire_sec
1
1 Expected
SELECT @@local.innodb_log_arch_expire_sec;
ERROR HY000: Variable 'innodb_log_arch_expire_sec' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT @@SESSION.innodb_log_arch_expire_sec;
ERROR HY000: Variable 'innodb_log_arch_expire_sec' is a GLOBAL variable
Expected error 'Variable is a GLOBAL variable'
SELECT @@GLOBAL.innodb_log_arch_expire_sec;
@@GLOBAL.innodb_log_arch_expire_sec
1
1 Expected
SELECT innodb_log_arch_expire_sec = @@SESSION.innodb_log_arch_expire_sec;
ERROR 42S22: Unknown column 'innodb_log_arch_expire_sec' in 'field list'
Expected error Unknown column 'innodb_log_arch_expire_sec' in 'field list'
SET @@GLOBAL.innodb_log_arch_expire_sec = @save;
