mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
System variable tests delivered by Folio3 (see WL4288).
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
This commit is contained in:
108
mysql-test/r/sql_quote_show_create_basic.result
Normal file
108
mysql-test/r/sql_quote_show_create_basic.result
Normal file
@ -0,0 +1,108 @@
|
||||
SET @session_start_value = @@session.sql_quote_show_create;
|
||||
SELECT @session_start_value;
|
||||
@session_start_value
|
||||
1
|
||||
'#--------------------FN_DYNVARS_162_01------------------------#'
|
||||
SET @@session.sql_quote_show_create = 0;
|
||||
SET @@session.sql_quote_show_create = DEFAULT;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
0
|
||||
SET @@session.sql_quote_show_create = 1;
|
||||
SET @@session.sql_quote_show_create = DEFAULT;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
1
|
||||
'#---------------------FN_DYNVARS_162_02-------------------------#'
|
||||
SET sql_quote_show_create = 1;
|
||||
SELECT @@sql_quote_show_create;
|
||||
@@sql_quote_show_create
|
||||
1
|
||||
SELECT session.sql_quote_show_create;
|
||||
ERROR 42S02: Unknown table 'session' in field list
|
||||
SELECT local.sql_quote_show_create;
|
||||
ERROR 42S02: Unknown table 'local' in field list
|
||||
SET session sql_quote_show_create = 0;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
0
|
||||
'#--------------------FN_DYNVARS_162_03------------------------#'
|
||||
SET @@session.sql_quote_show_create = 0;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
0
|
||||
SET @@session.sql_quote_show_create = 1;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
1
|
||||
'#--------------------FN_DYNVARS_162_04-------------------------#'
|
||||
SET @@session.sql_quote_show_create = -1;
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of '-1'
|
||||
SET @@session.sql_quote_show_create = 2;
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of '2'
|
||||
SET @@session.sql_quote_show_create = "T";
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'T'
|
||||
SET @@session.sql_quote_show_create = "Y";
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'Y'
|
||||
SET @@session.sql_quote_show_create = TR<54>E;
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÜE'
|
||||
SET @@session.sql_quote_show_create = <20>N;
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'ÕN'
|
||||
SET @@session.sql_quote_show_create = OF;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
0
|
||||
'Bug# 34828: OF is taken as OFF and a value of 0 is set.'
|
||||
SET @@session.sql_quote_show_create = <20>FF;
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'ÓFF'
|
||||
SET @@session.sql_quote_show_create = '<27>';
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of '<27>'
|
||||
SET @@session.sql_quote_show_create = NO;
|
||||
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'NO'
|
||||
'#-------------------FN_DYNVARS_162_05----------------------------#'
|
||||
SET @@global.sql_quote_show_create = 0;
|
||||
ERROR HY000: Variable 'sql_quote_show_create' is a SESSION variable and can't be used with SET GLOBAL
|
||||
SELECT @@global.sql_quote_show_create;
|
||||
ERROR HY000: Variable 'sql_quote_show_create' is a SESSION variable
|
||||
'#----------------------FN_DYNVARS_162_06------------------------#'
|
||||
SELECT count(VARIABLE_VALUE)
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='sql_quote_show_create';
|
||||
count(VARIABLE_VALUE)
|
||||
1
|
||||
'#----------------------FN_DYNVARS_162_07------------------------#'
|
||||
SELECT @@session.sql_quote_show_create = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='sql_quote_show_create';
|
||||
@@session.sql_quote_show_create = VARIABLE_VALUE
|
||||
1
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
0
|
||||
SELECT VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='sql_quote_show_create';
|
||||
VARIABLE_VALUE
|
||||
OFF
|
||||
'#---------------------FN_DYNVARS_162_08-------------------------#'
|
||||
SET @@session.sql_quote_show_create = OFF;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
0
|
||||
SET @@session.sql_quote_show_create = ON;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
1
|
||||
'#---------------------FN_DYNVARS_162_09----------------------#'
|
||||
SET @@session.sql_quote_show_create = TRUE;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
1
|
||||
SET @@session.sql_quote_show_create = FALSE;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
0
|
||||
SET @@session.sql_quote_show_create = @session_start_value;
|
||||
SELECT @@session.sql_quote_show_create;
|
||||
@@session.sql_quote_show_create
|
||||
1
|
Reference in New Issue
Block a user