SET @start_global_value = @@global.query_alloc_block_size;
SELECT @start_global_value;
@start_global_value
8192
SET @start_session_value = @@session.query_alloc_block_size;
SELECT @start_session_value;
@start_session_value
8192
'#--------------------FN_DYNVARS_130_01-------------------------#'
SET @@global.query_alloc_block_size = 10000;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '10000'
SET @@global.query_alloc_block_size = DEFAULT;
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
8192
SET @@session.query_alloc_block_size = 20000;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '20000'
SET @@session.query_alloc_block_size = DEFAULT;
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
8192
'#--------------------FN_DYNVARS_130_02-------------------------#'
SET @@global.query_alloc_block_size = DEFAULT;
SELECT @@global.query_alloc_block_size = 8192;
@@global.query_alloc_block_size = 8192
1
SET @@session.query_alloc_block_size = DEFAULT;
SELECT @@session.query_alloc_block_size = 8192;
@@session.query_alloc_block_size = 8192
1
'#--------------------FN_DYNVARS_130_03-------------------------#'
SET @@global.query_alloc_block_size = 1024;
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
1024
SET @@global.query_alloc_block_size = 1025;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '1025'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
1024
SET @@global.query_alloc_block_size = 4294967295;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '4294967295'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
4294966272
SET @@global.query_alloc_block_size = 4294967294;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '4294967294'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
4294966272
SET @@global.query_alloc_block_size = 65536;
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
65536
'#--------------------FN_DYNVARS_130_04-------------------------#'
SET @@session.query_alloc_block_size = 1024;
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
1024
SET @@session.query_alloc_block_size = 1025;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '1025'
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
1024
SET @@session.query_alloc_block_size = 655536;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '655536'
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
655360
'#------------------FN_DYNVARS_130_05-----------------------#'
SET @@global.query_alloc_block_size = 64;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '64'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
1024
SET @@global.query_alloc_block_size = -1;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '-1'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
1024
SET @@global.query_alloc_block_size = 1023;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '1023'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
1024
SET @@global.query_alloc_block_size = 4294967296;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '4294967296'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
4294966272
SET @@global.query_alloc_block_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'query_alloc_block_size'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
4294966272
SET @@global.query_alloc_block_size = test;
ERROR 42000: Incorrect argument type to variable 'query_alloc_block_size'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
4294966272
SET @@session.query_alloc_block_size = 64;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '64'
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
1024
SET @@session.query_alloc_block_size = -2;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '-2'
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
1024
SET @@session.query_alloc_block_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'query_alloc_block_size'
SET @@session.query_alloc_block_size = 1023;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '1023'
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
1024
SET @@session.query_alloc_block_size = test;
ERROR 42000: Incorrect argument type to variable 'query_alloc_block_size'
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
1024
'#------------------FN_DYNVARS_130_06-----------------------#'
SET @@global.query_alloc_block_size = 1;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '1'
SET @@session.query_alloc_block_size = 12;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '12'
SELECT @@global.query_alloc_block_size = 
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='query_alloc_block_size';
@@global.query_alloc_block_size = 
VARIABLE_VALUE
1
'#------------------FN_DYNVARS_130_07-----------------------#'
SELECT @@session.query_alloc_block_size = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='query_alloc_block_size';
@@session.query_alloc_block_size = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_130_08-----------------------#'
SET @@global.query_alloc_block_size = TRUE;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '1'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
1024
SET @@global.query_alloc_block_size = FALSE;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '0'
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
1024
'#---------------------FN_DYNVARS_130_09----------------------#'
SET @@global.query_alloc_block_size = 2048;
SELECT @@query_alloc_block_size = @@global.query_alloc_block_size;
@@query_alloc_block_size = @@global.query_alloc_block_size
0
'#---------------------FN_DYNVARS_130_10----------------------#'
SET @@query_alloc_block_size = 5000;
Warnings:
Warning	1292	Truncated incorrect query_alloc_block_size value: '5000'
SELECT @@query_alloc_block_size = @@local.query_alloc_block_size;
@@query_alloc_block_size = @@local.query_alloc_block_size
1
SELECT @@local.query_alloc_block_size = @@session.query_alloc_block_size;
@@local.query_alloc_block_size = @@session.query_alloc_block_size
1
'#---------------------FN_DYNVARS_130_11----------------------#'
SET query_alloc_block_size = 1024;
SELECT @@query_alloc_block_size;
@@query_alloc_block_size
1024
SELECT local.query_alloc_block_size;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.query_alloc_block_size;
ERROR 42S02: Unknown table 'session' in field list
SELECT query_alloc_block_size = @@session.query_alloc_block_size;
ERROR 42S22: Unknown column 'query_alloc_block_size' in 'field list'
SET @@global.query_alloc_block_size = @start_global_value;
SELECT @@global.query_alloc_block_size;
@@global.query_alloc_block_size
8192
SET @@session.query_alloc_block_size = @start_session_value;
SELECT @@session.query_alloc_block_size;
@@session.query_alloc_block_size
8192
