1
SET @start_global_value = @@global.new;
2
SELECT @start_global_value;
5
SET @start_session_value = @@session.new;
6
SELECT @start_session_value;
9
'#--------------------FN_DYNVARS_113_01-------------------------#'
10
SET @@global.new = ON;
11
SET @@global.new = DEFAULT;
15
SET @@session.new = ON;
16
SET @@session.new = DEFAULT;
20
'#--------------------FN_DYNVARS_113_02-------------------------#'
21
SET @@global.new = DEFAULT;
22
SELECT @@global.new = 'OFF';
26
Warning 1292 Truncated incorrect DOUBLE value: 'OFF'
27
SET @@session.new = DEFAULT;
28
SELECT @@session.new = 'OFF';
32
Warning 1292 Truncated incorrect DOUBLE value: 'OFF'
33
'#--------------------FN_DYNVARS_113_03-------------------------#'
34
SET @@global.new = ON;
38
SET @@global.new = OFF;
50
SET @@global.new = TRUE;
54
SET @@global.new = FALSE;
58
'#--------------------FN_DYNVARS_113_04-------------------------#'
59
SET @@session.new = ON;
63
SET @@session.new = OFF;
67
SET @@session.new = 0;
71
SET @@session.new = 1;
75
SET @@session.new = TRUE;
79
SET @@session.new = FALSE;
83
'#------------------FN_DYNVARS_113_05-----------------------#'
84
SET @@global.new = 'ONN';
85
ERROR 42000: Variable 'new' can't be set to the value of 'ONN'
86
SET @@global.new = "OFFF";
87
ERROR 42000: Variable 'new' can't be set to the value of 'OFFF'
88
SET @@global.new = TTRUE;
89
ERROR 42000: Variable 'new' can't be set to the value of 'TTRUE'
90
SET @@global.new = FELSE;
91
ERROR 42000: Variable 'new' can't be set to the value of 'FELSE'
92
SET @@global.new = -1024;
93
ERROR 42000: Variable 'new' can't be set to the value of '-1024'
94
SET @@global.new = 65536;
95
ERROR 42000: Variable 'new' can't be set to the value of '65536'
96
SET @@global.new = 65530.34;
97
ERROR 42000: Variable 'new' can't be set to the value of '65530'
98
SET @@global.new = test;
99
ERROR 42000: Variable 'new' can't be set to the value of 'test'
100
SET @@session.new = ONN;
101
ERROR 42000: Variable 'new' can't be set to the value of 'ONN'
102
SET @@session.new = ONF;
103
ERROR 42000: Variable 'new' can't be set to the value of 'ONF'
104
SET @@session.new = OF;
105
SELECT @@session.new;
108
'Bug# 34828: FN_DYNVARS_113_05 - OF is also working as OFF and no error is coming';
109
SET @@session.new = 'OFN';
110
ERROR 42000: Variable 'new' can't be set to the value of 'OFN'
111
SET @@session.new = -2;
112
ERROR 42000: Variable 'new' can't be set to the value of '-2'
113
SET @@session.new = 65530.34.;
114
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
115
SET @@session.new = 65550;
116
ERROR 42000: Variable 'new' can't be set to the value of '65550'
117
SET @@session.new = test;
118
ERROR 42000: Variable 'new' can't be set to the value of 'test'
119
'#------------------FN_DYNVARS_113_06-----------------------#'
120
SELECT @@global.new = VARIABLE_VALUE
121
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
122
WHERE VARIABLE_NAME='new';
123
@@global.new = VARIABLE_VALUE
125
'#------------------FN_DYNVARS_113_07-----------------------#'
126
SELECT @@session.new = VARIABLE_VALUE
127
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
128
WHERE VARIABLE_NAME='new';
129
@@session.new = VARIABLE_VALUE
131
'#---------------------FN_DYNVARS_113_08----------------------#'
133
SET @@global.new = ON;
134
SELECT @@new = @@global.new;
137
'#---------------------FN_DYNVARS_113_09----------------------#'
139
SELECT @@new = @@local.new;
142
SELECT @@local.new = @@session.new;
143
@@local.new = @@session.new
145
'#---------------------FN_DYNVARS_113_10----------------------#'
151
ERROR 42S02: Unknown table 'local' in field list
153
ERROR 42S02: Unknown table 'session' in field list
154
SELECT new = @@session.new;
155
ERROR 42S22: Unknown column 'new' in 'field list'
156
SET @@global.new = @start_global_value;
160
SET @@session.new = @start_session_value;
161
SELECT @@session.new;