mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
b00c536378
BitKeeper/etc/ignore: Added mysql-test/linux_sys_vars.inc mysql-test/load_sysvars.inc mysql-test/windows_sys_vars.inc to the ignore list
168 lines
6.1 KiB
Text
168 lines
6.1 KiB
Text
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: '0'
|
|
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: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
|
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: '0'
|
|
SELECT @@session.group_concat_max_len;
|
|
@@session.group_concat_max_len
|
|
4
|
|
SET @@session.group_concat_max_len = 65530.34.;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
|
SET @@session.group_concat_max_len = 65550;
|
|
SELECT @@session.group_concat_max_len;
|
|
@@session.group_concat_max_len
|
|
65550
|
|
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
|
|
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
|