mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
WL#4681: Took the system variable tests out of the main test suite, put them into "sys_vars", updated some reult files and tests.
This commit is contained in:
116
mysql-test/suite/sys_vars/r/sql_buffer_result_basic.result
Normal file
116
mysql-test/suite/sys_vars/r/sql_buffer_result_basic.result
Normal file
@ -0,0 +1,116 @@
|
||||
SET @session_start_value = @@session.sql_buffer_result;
|
||||
SELECT @session_start_value;
|
||||
@session_start_value
|
||||
0
|
||||
'#--------------------FN_DYNVARS_155_01------------------------#'
|
||||
SET @@session.sql_buffer_result = 0;
|
||||
SET @@session.sql_buffer_result = DEFAULT;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
SET @@session.sql_buffer_result = 1;
|
||||
SET @@session.sql_buffer_result = DEFAULT;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
1
|
||||
'#---------------------FN_DYNVARS_155_02-------------------------#'
|
||||
SET sql_buffer_result = 1;
|
||||
SELECT @@sql_buffer_result;
|
||||
@@sql_buffer_result
|
||||
1
|
||||
SELECT session.sql_buffer_result;
|
||||
ERROR 42S02: Unknown table 'session' in field list
|
||||
SELECT local.sql_buffer_result;
|
||||
ERROR 42S02: Unknown table 'local' in field list
|
||||
SET session sql_buffer_result = 0;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
'#--------------------FN_DYNVARS_155_03------------------------#'
|
||||
SET @@session.sql_buffer_result = 0;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
SET @@session.sql_buffer_result = 1;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
1
|
||||
'#--------------------FN_DYNVARS_155_04-------------------------#'
|
||||
SET @@session.sql_buffer_result = -1;
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of '-1'
|
||||
SET @@session.sql_buffer_result = 2;
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of '2'
|
||||
SET @@session.sql_buffer_result = "TRU";
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'TRU'
|
||||
SET @@session.sql_buffer_result = 0.4;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
SET @@session.sql_buffer_result = 1.4;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
1
|
||||
'Bug: Decimal values are accepted and rounded to an integer before';
|
||||
'assingment.';
|
||||
SET @@session.sql_buffer_result = TR<54>E;
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'TRÜE'
|
||||
SET @@session.sql_buffer_result = <20>N;
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'ÕN'
|
||||
SET @@session.sql_buffer_result = OF;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
'Bug# 34828: OF is taken as OFF and a value of 0 is set.'
|
||||
SET @@session.sql_buffer_result = <20>FF;
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'ÓFF'
|
||||
SET @@session.sql_buffer_result = '<27>';
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of '<27>'
|
||||
SET @@session.sql_buffer_result = NO;
|
||||
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'NO'
|
||||
'#-------------------FN_DYNVARS_155_05----------------------------#'
|
||||
SET @@global.sql_buffer_result = 0;
|
||||
ERROR HY000: Variable 'sql_buffer_result' is a SESSION variable and can't be used with SET GLOBAL
|
||||
SELECT @@global.sql_buffer_result;
|
||||
ERROR HY000: Variable 'sql_buffer_result' is a SESSION variable
|
||||
'#----------------------FN_DYNVARS_155_06------------------------#'
|
||||
SELECT count(VARIABLE_VALUE)
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='sql_buffer_result';
|
||||
count(VARIABLE_VALUE)
|
||||
1
|
||||
'#----------------------FN_DYNVARS_155_07------------------------#'
|
||||
SELECT @@session.sql_buffer_result = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='sql_buffer_result';
|
||||
@@session.sql_buffer_result = VARIABLE_VALUE
|
||||
1
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
SELECT VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='sql_buffer_result';
|
||||
VARIABLE_VALUE
|
||||
OFF
|
||||
'#---------------------FN_DYNVARS_155_08-------------------------#'
|
||||
SET @@session.sql_buffer_result = OFF;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
SET @@session.sql_buffer_result = ON;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
1
|
||||
'#---------------------FN_DYNVARS_155_09----------------------#'
|
||||
SET @@session.sql_buffer_result = TRUE;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
1
|
||||
SET @@session.sql_buffer_result = FALSE;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
||||
SET @@session.sql_buffer_result = @session_start_value;
|
||||
SELECT @@session.sql_buffer_result;
|
||||
@@session.sql_buffer_result
|
||||
0
|
Reference in New Issue
Block a user