SET @start_global_value = @@global.max_seeks_for_key;
SELECT @start_global_value;
@start_global_value
4294967295
SET @start_session_value = @@session.max_seeks_for_key;
SELECT @start_session_value;
@start_session_value
4294967295
'#--------------------FN_DYNVARS_083_01-------------------------#'
SET @@global.max_seeks_for_key = 100;
SET @@global.max_seeks_for_key = DEFAULT;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967295
SET @@session.max_seeks_for_key = 200;
SET @@session.max_seeks_for_key = DEFAULT;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967295
'#--------------------FN_DYNVARS_083_02-------------------------#'
SET @@global.max_seeks_for_key = DEFAULT;
SELECT @@global.max_seeks_for_key = 4294967295;
@@global.max_seeks_for_key = 4294967295
1
SET @@session.max_seeks_for_key = DEFAULT;
SELECT @@session.max_seeks_for_key = 4294967295;
@@session.max_seeks_for_key = 4294967295
1
'#--------------------FN_DYNVARS_083_03-------------------------#'
SET @@global.max_seeks_for_key = 1;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1
SET @@global.max_seeks_for_key = 2;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
2
SET @@global.max_seeks_for_key = 65536;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
65536
SET @@global.max_seeks_for_key = 4294967295;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967295
SET @@global.max_seeks_for_key = 4294967294;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967294
'#--------------------FN_DYNVARS_083_04-------------------------#'
SET @@session.max_seeks_for_key = 1;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
1
SET @@session.max_seeks_for_key = 2;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
2
SET @@session.max_seeks_for_key = 4294967295;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967295
SET @@session.max_seeks_for_key = 4294967294;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967294
SET @@session.max_seeks_for_key = 65535;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
65535
'#------------------FN_DYNVARS_083_05-----------------------#'
SET @@global.max_seeks_for_key = 0;
Warnings:
Warning	1292	Truncated incorrect max_seeks_for_key value: '0'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1
SET @@global.max_seeks_for_key = -1024;
Warnings:
Warning	1292	Truncated incorrect max_seeks_for_key value: '-1024'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1
SET @@global.max_seeks_for_key = 4294967296;
Warnings:
Warning	1292	Truncated incorrect max_seeks_for_key value: '4294967296'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967295
SET @@global.max_seeks_for_key = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967295
SET @@global.max_seeks_for_key = test;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967295
SET @@session.max_seeks_for_key = 0;
Warnings:
Warning	1292	Truncated incorrect max_seeks_for_key value: '0'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
1
SET @@session.max_seeks_for_key = -2;
Warnings:
Warning	1292	Truncated incorrect max_seeks_for_key value: '-2'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
1
SET @@session.max_seeks_for_key = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SET @@session.max_seeks_for_key = 4294967296;
Warnings:
Warning	1292	Truncated incorrect max_seeks_for_key value: '4294967296'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967295
SET @@session.max_seeks_for_key = test;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967295
'#------------------FN_DYNVARS_083_06-----------------------#'
SELECT @@global.max_seeks_for_key = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='max_seeks_for_key';
@@global.max_seeks_for_key = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_083_07-----------------------#'
SELECT @@session.max_seeks_for_key = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='max_seeks_for_key';
@@session.max_seeks_for_key = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_083_08-----------------------#'
SET @@global.max_seeks_for_key = TRUE;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1
SET @@global.max_seeks_for_key = FALSE;
Warnings:
Warning	1292	Truncated incorrect max_seeks_for_key value: '0'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1
'#---------------------FN_DYNVARS_083_09----------------------#'
SET @@global.max_seeks_for_key = 10;
SELECT @@max_seeks_for_key = @@global.max_seeks_for_key;
@@max_seeks_for_key = @@global.max_seeks_for_key
0
'#---------------------FN_DYNVARS_083_10----------------------#'
SET @@max_seeks_for_key = 100;
SELECT @@max_seeks_for_key = @@local.max_seeks_for_key;
@@max_seeks_for_key = @@local.max_seeks_for_key
1
SELECT @@local.max_seeks_for_key = @@session.max_seeks_for_key;
@@local.max_seeks_for_key = @@session.max_seeks_for_key
1
'#---------------------FN_DYNVARS_083_11----------------------#'
SET max_seeks_for_key = 1;
SELECT @@max_seeks_for_key;
@@max_seeks_for_key
1
SELECT local.max_seeks_for_key;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.max_seeks_for_key;
ERROR 42S02: Unknown table 'session' in field list
SELECT max_seeks_for_key = @@session.max_seeks_for_key;
ERROR 42S22: Unknown column 'max_seeks_for_key' in 'field list'
SET @@global.max_seeks_for_key = @start_global_value;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967295
SET @@session.max_seeks_for_key = @start_session_value;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967295
