1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
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
1
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 SELECT
SELECT local.sql_quote_show_create;
ERROR 42S02: Unknown table 'local' in SELECT
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 = TRE;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRE'
SET @@session.sql_quote_show_create = N;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'N'
SET @@session.sql_quote_show_create = OF;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'OF'
SET @@session.sql_quote_show_create = FF;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'FF'
SET @@session.sql_quote_show_create = '';
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of ''
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 = 1-@@global.sql_quote_show_create;
SELECT @@global.sql_quote_show_create;
@@global.sql_quote_show_create
0
SET @@global.sql_quote_show_create = 1-@@global.sql_quote_show_create;
SELECT @@global.sql_quote_show_create;
@@global.sql_quote_show_create
1
'#----------------------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 IF(@@session.sql_quote_show_create, "ON", "OFF") = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='sql_quote_show_create';
IF(@@session.sql_quote_show_create, "ON", "OFF") = VARIABLE_VALUE
1
SELECT @@session.sql_quote_show_create;
@@session.sql_quote_show_create
1
SELECT VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='sql_quote_show_create';
VARIABLE_VALUE
ON
'#---------------------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
|