SET @start_global_value = @@global.group_concat_max_len;
SELECT @start_global_value;
@start_global_value
1024
SET @start_session_value = @@session.group_concat_max_len;
SELECT @start_session_value;
@start_session_value
1024
'#--------------------FN_DYNVARS_034_01-------------------------#'
SET @@global.group_concat_max_len = 100;
SET @@global.group_concat_max_len = DEFAULT;
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
1024
SET @@session.group_concat_max_len = 200;
SET @@session.group_concat_max_len = DEFAULT;
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
1024
'#--------------------FN_DYNVARS_034_02-------------------------#'
SET @@global.group_concat_max_len = DEFAULT;
SELECT @@global.group_concat_max_len = 1;
@@global.group_concat_max_len = 1
0
SET @@session.group_concat_max_len = DEFAULT;
SELECT @@session.group_concat_max_len = 1;
@@session.group_concat_max_len = 1
0
'#--------------------FN_DYNVARS_034_03-------------------------#'
SET @@global.group_concat_max_len = 1;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '1'
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
4
SET @@global.group_concat_max_len = 60020;
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
60020
SET @@global.group_concat_max_len = 65535;
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
65535
'#--------------------FN_DYNVARS_034_04-------------------------#'
SET @@session.group_concat_max_len = 1;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '1'
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
4
SET @@session.group_concat_max_len = 50050;
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
50050
SET @@session.group_concat_max_len = 65535;
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
65535
'#------------------FN_DYNVARS_034_05-----------------------#'
SET @@global.group_concat_max_len = 0;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '0'
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
4
SET @@global.group_concat_max_len = -1024;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '-1024'
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
4
SET @@global.group_concat_max_len = 65536;
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
65536
SET @@global.group_concat_max_len = 65530.34;
ERROR 42000: Incorrect argument type to variable 'group_concat_max_len'
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
65536
SET @@global.group_concat_max_len = test;
ERROR 42000: Incorrect argument type to variable 'group_concat_max_len'
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
65536
SET @@session.group_concat_max_len = 0;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '0'
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
4
SET @@session.group_concat_max_len = -2;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '-2'
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
4
SET @@session.group_concat_max_len = 65530.34;
ERROR 42000: Incorrect argument type to variable 'group_concat_max_len'
SET @@session.group_concat_max_len = 65550;
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
65550
SET @@session.group_concat_max_len = test;
ERROR 42000: Incorrect argument type to variable 'group_concat_max_len'
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
65550
'#------------------FN_DYNVARS_034_06-----------------------#'
SELECT @@global.group_concat_max_len = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='group_concat_max_len';
@@global.group_concat_max_len = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_034_07-----------------------#'
SELECT @@session.group_concat_max_len = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='group_concat_max_len';
@@session.group_concat_max_len = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_034_08-----------------------#'
SET @@global.group_concat_max_len = TRUE;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '1'
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
4
SET @@global.group_concat_max_len = FALSE;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '0'
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
4
'#---------------------FN_DYNVARS_001_09----------------------#'
SET @@global.group_concat_max_len = 10;
SELECT @@group_concat_max_len = @@global.group_concat_max_len;
@@group_concat_max_len = @@global.group_concat_max_len
0
'#---------------------FN_DYNVARS_001_10----------------------#'
SET @@group_concat_max_len = 100;
SELECT @@group_concat_max_len = @@local.group_concat_max_len;
@@group_concat_max_len = @@local.group_concat_max_len
1
SELECT @@local.group_concat_max_len = @@session.group_concat_max_len;
@@local.group_concat_max_len = @@session.group_concat_max_len
1
'#---------------------FN_DYNVARS_001_11----------------------#'
SET group_concat_max_len = 1;
Warnings:
Warning	1292	Truncated incorrect group_concat_max_len value: '1'
SELECT @@group_concat_max_len;
@@group_concat_max_len
4
SELECT local.group_concat_max_len;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.group_concat_max_len;
ERROR 42S02: Unknown table 'session' in field list
SELECT group_concat_max_len = @@session.group_concat_max_len;
ERROR 42S22: Unknown column 'group_concat_max_len' in 'field list'
SET @@global.group_concat_max_len = @start_global_value;
SELECT @@global.group_concat_max_len;
@@global.group_concat_max_len
1024
SET @@session.group_concat_max_len = @start_session_value;
SELECT @@session.group_concat_max_len;
@@session.group_concat_max_len
1024
