mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
116 lines
4.1 KiB
Text
116 lines
4.1 KiB
Text
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ÜE;
|
|
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'TRÃœE'
|
|
SET @@session.sql_buffer_result = Õ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 = ÓFF;
|
|
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'ÓFF'
|
|
SET @@session.sql_buffer_result = '¹';
|
|
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of '¹'
|
|
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
|