1
create table ADDDATE(a int);
3
create table ADDDATE (a int);
5
create table CAST(a int);
6
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CAST(a int)' at line 1
7
create table CAST (a int);
8
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CAST (a int)' at line 1
9
create table COUNT(a int);
10
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'COUNT(a int)' at line 1
11
create table COUNT (a int);
12
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'COUNT (a int)' at line 1
13
create table CURDATE(a int);
14
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CURDATE(a int)' at line 1
15
create table CURDATE (a int);
16
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CURDATE (a int)' at line 1
17
create table DATE_ADD(a int);
18
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_ADD(a int)' at line 1
19
create table DATE_ADD (a int);
20
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_ADD (a int)' at line 1
21
create table DATE_SUB(a int);
22
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_SUB(a int)' at line 1
23
create table DATE_SUB (a int);
24
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_SUB (a int)' at line 1
25
create table EXTRACT(a int);
26
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'EXTRACT(a int)' at line 1
27
create table EXTRACT (a int);
28
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'EXTRACT (a int)' at line 1
29
create table GROUP_CONCAT(a int);
30
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'GROUP_CONCAT(a int)' at line 1
31
create table GROUP_CONCAT (a int);
32
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'GROUP_CONCAT (a int)' at line 1
33
create table GROUP_UNIQUE_USERS(a int);
34
drop table GROUP_UNIQUE_USERS;
35
create table GROUP_UNIQUE_USERS (a int);
36
drop table GROUP_UNIQUE_USERS;
37
create table MAX(a int);
38
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MAX(a int)' at line 1
39
create table MAX (a int);
40
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MAX (a int)' at line 1
41
create table MID(a int);
42
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MID(a int)' at line 1
43
create table MID (a int);
44
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MID (a int)' at line 1
45
create table MIN(a int);
46
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MIN(a int)' at line 1
47
create table MIN (a int);
48
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MIN (a int)' at line 1
49
create table NOW(a int);
50
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'NOW(a int)' at line 1
51
create table NOW (a int);
52
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'NOW (a int)' at line 1
53
create table POSITION(a int);
54
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'POSITION(a int)' at line 1
55
create table POSITION (a int);
56
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'POSITION (a int)' at line 1
57
create table SESSION_USER(a int);
58
drop table SESSION_USER;
59
create table SESSION_USER (a int);
60
drop table SESSION_USER;
61
create table STD(a int);
62
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STD(a int)' at line 1
63
create table STD (a int);
64
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STD (a int)' at line 1
65
create table STDDEV(a int);
66
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV(a int)' at line 1
67
create table STDDEV (a int);
68
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV (a int)' at line 1
69
create table STDDEV_POP(a int);
70
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_POP(a int)' at line 1
71
create table STDDEV_POP (a int);
72
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_POP (a int)' at line 1
73
create table STDDEV_SAMP(a int);
74
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_SAMP(a int)' at line 1
75
create table STDDEV_SAMP (a int);
76
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_SAMP (a int)' at line 1
77
create table SUBDATE(a int);
79
create table SUBDATE (a int);
81
create table SUBSTR(a int);
82
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUBSTR(a int)' at line 1
83
create table SUBSTR (a int);
84
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUBSTR (a int)' at line 1
85
create table SUM(a int);
86
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUM(a int)' at line 1
87
create table SUM (a int);
88
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUM (a int)' at line 1
89
create table SYSDATE(a int);
90
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SYSDATE(a int)' at line 1
91
create table SYSDATE (a int);
92
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SYSDATE (a int)' at line 1
93
create table SYSTEM_USER(a int);
94
drop table SYSTEM_USER;
95
create table SYSTEM_USER (a int);
96
drop table SYSTEM_USER;
97
create table TRIM(a int);
98
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'TRIM(a int)' at line 1
99
create table TRIM (a int);
100
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'TRIM (a int)' at line 1
101
create table UNIQUE_USERS(a int);
102
drop table UNIQUE_USERS;
103
create table UNIQUE_USERS (a int);
104
drop table UNIQUE_USERS;
105
create table VARIANCE(a int);
106
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VARIANCE(a int)' at line 1
107
create table VARIANCE (a int);
108
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VARIANCE (a int)' at line 1
109
create table VAR_POP(a int);
110
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_POP(a int)' at line 1
111
create table VAR_POP (a int);
112
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_POP (a int)' at line 1
113
create table VAR_SAMP(a int);
114
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_SAMP(a int)' at line 1
115
create table VAR_SAMP (a int);
116
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_SAMP (a int)' at line 1
117
create table ADDDATE(a int);
119
create table ADDDATE (a int);
121
create table CAST(a int);
122
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CAST(a int)' at line 1
123
create table CAST (a int);
124
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CAST (a int)' at line 1
125
create table COUNT(a int);
126
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'COUNT(a int)' at line 1
127
create table COUNT (a int);
128
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'COUNT (a int)' at line 1
129
create table CURDATE(a int);
130
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CURDATE(a int)' at line 1
131
create table CURDATE (a int);
132
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'CURDATE (a int)' at line 1
133
create table DATE_ADD(a int);
134
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_ADD(a int)' at line 1
135
create table DATE_ADD (a int);
136
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_ADD (a int)' at line 1
137
create table DATE_SUB(a int);
138
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_SUB(a int)' at line 1
139
create table DATE_SUB (a int);
140
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'DATE_SUB (a int)' at line 1
141
create table EXTRACT(a int);
142
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'EXTRACT(a int)' at line 1
143
create table EXTRACT (a int);
144
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'EXTRACT (a int)' at line 1
145
create table GROUP_CONCAT(a int);
146
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'GROUP_CONCAT(a int)' at line 1
147
create table GROUP_CONCAT (a int);
148
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'GROUP_CONCAT (a int)' at line 1
149
create table GROUP_UNIQUE_USERS(a int);
150
drop table GROUP_UNIQUE_USERS;
151
create table GROUP_UNIQUE_USERS (a int);
152
drop table GROUP_UNIQUE_USERS;
153
create table MAX(a int);
154
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MAX(a int)' at line 1
155
create table MAX (a int);
156
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MAX (a int)' at line 1
157
create table MID(a int);
158
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MID(a int)' at line 1
159
create table MID (a int);
160
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MID (a int)' at line 1
161
create table MIN(a int);
162
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MIN(a int)' at line 1
163
create table MIN (a int);
164
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'MIN (a int)' at line 1
165
create table NOW(a int);
166
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'NOW(a int)' at line 1
167
create table NOW (a int);
168
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'NOW (a int)' at line 1
169
create table POSITION(a int);
170
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'POSITION(a int)' at line 1
171
create table POSITION (a int);
172
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'POSITION (a int)' at line 1
173
create table SESSION_USER(a int);
174
drop table SESSION_USER;
175
create table SESSION_USER (a int);
176
drop table SESSION_USER;
177
create table STD(a int);
178
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STD(a int)' at line 1
179
create table STD (a int);
180
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STD (a int)' at line 1
181
create table STDDEV(a int);
182
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV(a int)' at line 1
183
create table STDDEV (a int);
184
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV (a int)' at line 1
185
create table STDDEV_POP(a int);
186
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_POP(a int)' at line 1
187
create table STDDEV_POP (a int);
188
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_POP (a int)' at line 1
189
create table STDDEV_SAMP(a int);
190
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_SAMP(a int)' at line 1
191
create table STDDEV_SAMP (a int);
192
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'STDDEV_SAMP (a int)' at line 1
193
create table SUBDATE(a int);
195
create table SUBDATE (a int);
197
create table SUBSTR(a int);
198
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUBSTR(a int)' at line 1
199
create table SUBSTR (a int);
200
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUBSTR (a int)' at line 1
201
create table SUBSTRING(a int);
202
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUBSTRING(a int)' at line 1
203
create table SUBSTRING (a int);
204
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUBSTRING (a int)' at line 1
205
create table SUM(a int);
206
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUM(a int)' at line 1
207
create table SUM (a int);
208
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SUM (a int)' at line 1
209
create table SYSDATE(a int);
210
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SYSDATE(a int)' at line 1
211
create table SYSDATE (a int);
212
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'SYSDATE (a int)' at line 1
213
create table SYSTEM_USER(a int);
214
drop table SYSTEM_USER;
215
create table SYSTEM_USER (a int);
216
drop table SYSTEM_USER;
217
create table TRIM(a int);
218
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'TRIM(a int)' at line 1
219
create table TRIM (a int);
220
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'TRIM (a int)' at line 1
221
create table UNIQUE_USERS(a int);
222
drop table UNIQUE_USERS;
223
create table UNIQUE_USERS (a int);
224
drop table UNIQUE_USERS;
225
create table VARIANCE(a int);
226
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VARIANCE(a int)' at line 1
227
create table VARIANCE (a int);
228
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VARIANCE (a int)' at line 1
229
create table VAR_POP(a int);
230
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_POP(a int)' at line 1
231
create table VAR_POP (a int);
232
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_POP (a int)' at line 1
233
create table VAR_SAMP(a int);
234
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_SAMP(a int)' at line 1
235
create table VAR_SAMP (a int);
236
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'VAR_SAMP (a int)' at line 1
237
DROP TABLE IF EXISTS table_25930_a;
238
DROP TABLE IF EXISTS table_25930_b;
239
CREATE TABLE table_25930_a ( "blah" INT );
240
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '"blah" INT )' at line 1
241
CREATE TABLE table_25930_a ( blah INT );
242
CREATE TABLE table_25930_b SELECT "blah" - 1 FROM table_25930_a;
244
Field Type Null Default Default_is_NULL On_Update
245
"blah" - 1 DOUBLE NO NO
246
DROP TABLE table_25930_a;
247
DROP TABLE table_25930_b;
249
ERROR 42000: Incorrect parameter count in the call to native function 'pi'
251
ERROR 42000: Incorrect parameter count in the call to native function 'tan'
253
ERROR 42000: Incorrect parameter count in the call to native function 'tan'
255
ERROR 42000: Incorrect parameter count in the call to native function 'makedate'
256
select makedate(1, 2, 3);
257
ERROR 42000: Incorrect parameter count in the call to native function 'makedate'
259
ERROR 42000: Incorrect parameter count in the call to native function 'atan'
260
select atan2(1, 2, 3);
261
ERROR 42000: Incorrect parameter count in the call to native function 'atan'
263
ERROR 42000: Incorrect parameter count in the call to native function 'concat'
264
select concat("foo");
268
ERROR 42000: Incorrect parameter count in the call to native function 'concat_ws'
269
select concat_ws("foo");
270
ERROR 42000: Incorrect parameter count in the call to native function 'concat_ws'
272
ERROR 42000: Incorrect parameter count in the call to native function 'elt'
274
ERROR 42000: Incorrect parameter count in the call to native function 'elt'
276
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
277
select export_set("p1");
278
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
279
select export_set("p1", "p2");
280
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
281
select export_set("p1", "p2", "p3", "p4", "p5", "p6");
282
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
284
ERROR 42000: Incorrect parameter count in the call to native function 'field'
286
ERROR 42000: Incorrect parameter count in the call to native function 'field'
287
select from_unixtime();
288
ERROR 42000: Incorrect parameter count in the call to native function 'from_unixtime'
289
select from_unixtime(1, 2, 3);
290
ERROR 42000: Incorrect parameter count in the call to native function 'from_unixtime'
291
select unix_timestamp(1, 2);
292
ERROR 42000: Incorrect parameter count in the call to native function 'unix_timestamp'
294
ERROR 42000: Incorrect parameter count in the call to native function 'greatest'
296
ERROR 42000: Incorrect parameter count in the call to native function 'greatest'
297
select last_insert_id(1, 2);
298
ERROR 42000: Incorrect parameter count in the call to native function 'last_insert_id'
300
ERROR 42000: Incorrect parameter count in the call to native function 'least'
302
ERROR 42000: Incorrect parameter count in the call to native function 'least'
304
ERROR 42000: Incorrect parameter count in the call to native function 'locate'
306
ERROR 42000: Incorrect parameter count in the call to native function 'locate'
307
select locate(1, 2, 3, 4);
308
ERROR 42000: Incorrect parameter count in the call to native function 'locate'
310
ERROR 42000: Incorrect parameter count in the call to native function 'log'
312
ERROR 42000: Incorrect parameter count in the call to native function 'log'
314
ERROR 42000: Incorrect parameter count in the call to native function 'make_set'
316
ERROR 42000: Incorrect parameter count in the call to native function 'make_set'
317
select rand(1, 2, 3);
318
ERROR 42000: Incorrect parameter count in the call to native function 'rand'
319
select round(1, 2, 3);
320
ERROR 42000: Incorrect parameter count in the call to native function 'round'
324
select abs(3 AS three);
330
select abs(3 AS "three");
333
select abs(3 "three");
337
set @foobar="foobar";
338
select instr("foobar", "bar");
339
instr("foobar", "bar")
341
select instr("foobar" AS p1, "bar");
342
ERROR 42000: Incorrect parameters in the call to native function 'instr'
343
select instr("foobar" p1, "bar");
344
ERROR 42000: Incorrect parameters in the call to native function 'instr'
345
select instr("foobar" AS "p1", "bar");
346
ERROR 42000: Incorrect parameters in the call to native function 'instr'
347
select instr("foobar" "p1", "bar");
348
instr("foobar" "p1", "bar")
350
select instr(@foobar "p1", "bar");
351
ERROR 42000: Incorrect parameters in the call to native function 'instr'
352
select instr("foobar", "bar" AS p2);
353
ERROR 42000: Incorrect parameters in the call to native function 'instr'
354
select instr("foobar", "bar" p2);
355
ERROR 42000: Incorrect parameters in the call to native function 'instr'
356
select instr("foobar", "bar" AS "p2");
357
ERROR 42000: Incorrect parameters in the call to native function 'instr'
358
select instr("foobar", "bar" "p2");
359
instr("foobar", "bar" "p2")
361
select instr("foobar", @bar "p2");
362
ERROR 42000: Incorrect parameters in the call to native function 'instr'
363
select instr("foobar" AS p1, "bar" AS p2);
364
ERROR 42000: Incorrect parameters in the call to native function 'instr'
365
select conv(255, 10, 16);
368
select conv(255 AS p1, 10, 16);
369
ERROR 42000: Incorrect parameters in the call to native function 'conv'
370
select conv(255 p1, 10, 16);
371
ERROR 42000: Incorrect parameters in the call to native function 'conv'
372
select conv(255 AS "p1", 10, 16);
373
ERROR 42000: Incorrect parameters in the call to native function 'conv'
374
select conv(255 "p1", 10, 16);
375
ERROR 42000: Incorrect parameters in the call to native function 'conv'
376
select conv(255, 10 AS p2, 16);
377
ERROR 42000: Incorrect parameters in the call to native function 'conv'
378
select conv(255, 10 p2, 16);
379
ERROR 42000: Incorrect parameters in the call to native function 'conv'
380
select conv(255, 10 AS "p2", 16);
381
ERROR 42000: Incorrect parameters in the call to native function 'conv'
382
select conv(255, 10 "p2", 16);
383
ERROR 42000: Incorrect parameters in the call to native function 'conv'
384
select conv(255, 10, 16 AS p3);
385
ERROR 42000: Incorrect parameters in the call to native function 'conv'
386
select conv(255, 10, 16 p3);
387
ERROR 42000: Incorrect parameters in the call to native function 'conv'
388
select conv(255, 10, 16 AS "p3");
389
ERROR 42000: Incorrect parameters in the call to native function 'conv'
390
select conv(255, 10, 16 "p3");
391
ERROR 42000: Incorrect parameters in the call to native function 'conv'
392
select conv(255 AS p1, 10 AS p2, 16 AS p3);
393
ERROR 42000: Incorrect parameters in the call to native function 'conv'
397
select atan(10 AS p1);
403
select atan(10 AS "p1");
406
select atan(10 "p1");
412
select atan(10 AS p1, 20);
415
select atan(10 p1, 20);
418
select atan(10 AS "p1", 20);
421
select atan(10 "p1", 20);
424
select atan(10, 20 AS p2);
427
select atan(10, 20 p2);
430
select atan(10, 20 AS "p2");
433
select atan(10, 20 "p2");
436
select atan(10 AS p1, 20 AS p2);
437
atan(10 AS p1, 20 AS p2)
439
DROP TABLE IF EXISTS t1;
440
SELECT "1997-12-31 23:59:59" + INTERVAL 1 SECOND;
441
"1997-12-31 23:59:59" + INTERVAL 1 SECOND
442
1998-01-01 00:00:00.000000
443
SELECT 1 + INTERVAL(1,0,1,2) + 1;
444
1 + INTERVAL(1,0,1,2) + 1
446
SELECT INTERVAL(1,0,1,2) + 1;
447
INTERVAL(1,0,1,2) + 1
449
SELECT INTERVAL(1,0+1,2,3) * 5.5;
450
INTERVAL(1,0+1,2,3) * 5.5
452
SELECT INTERVAL(3,3,1+3,4+4) / 0.5;
453
INTERVAL(3,3,1+3,4+4) / 0.5
455
SELECT (INTERVAL(1,0,1,2) + 5) * 7 + INTERVAL(1,0,1,2) / 2;
456
(INTERVAL(1,0,1,2) + 5) * 7 + INTERVAL(1,0,1,2) / 2
458
SELECT INTERVAL(1,0,1,2) + 1, 5 * INTERVAL(1,0,1,2);
459
INTERVAL(1,0,1,2) + 1 5 * INTERVAL(1,0,1,2)
461
SELECT INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3);
462
INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3)
464
CREATE TABLE t1 (a INT, b DATETIME);
465
INSERT INTO t1 VALUES (INTERVAL(3,2,1) + 1, "1997-12-31 23:59:59" + INTERVAL 1 SECOND);
466
SELECT * FROM t1 WHERE a = INTERVAL(3,2,1) + 1;
468
3 1998-01-01 00:00:00
470
DROP TABLE IF EXISTS t1,t2,t3;
471
CREATE TABLE t1 (a1 INT, a2 INT, a3 INT, a4 DATETIME);
472
CREATE TABLE t2 LIKE t1;
473
CREATE TABLE t3 LIKE t1;
474
SELECT t1.* FROM t1 AS t0, { OJ t2 INNER JOIN t1 ON (t1.a1=t2.a1) } WHERE t0.a3=2;
476
SELECT t1.*,t2.* FROM { OJ ((t1 INNER JOIN t2 ON (t1.a1=t2.a2)) LEFT OUTER JOIN t3 ON t3.a3=t2.a1)};
477
a1 a2 a3 a4 a1 a2 a3 a4
478
SELECT t1.*,t2.* FROM { OJ ((t1 LEFT OUTER JOIN t2 ON t1.a3=t2.a2) INNER JOIN t3 ON (t3.a1=t2.a2))};
479
a1 a2 a3 a4 a1 a2 a3 a4
480
SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) CROSS JOIN t3 ON (t3.a2=t2.a3)};
481
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'ON (t3.a2=t2.a3)}' at line 1
482
SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) INNER JOIN t3 ON (t3.a2=t2.a3)};
483
a1 a2 a3 a4 a1 a2 a3 a4
484
SELECT * FROM {oj t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a3} WHERE t1.a2 > 10;
485
a1 a2 a3 a4 a1 a2 a3 a4
486
SELECT {fn CONCAT(a1,a2)} FROM t1;
488
UPDATE t3 SET a4={d '1789-07-14'} WHERE a1=0;
489
SELECT a1, a4 FROM t2 WHERE a4 LIKE {fn UCASE('1789-07-14')};
491
DROP TABLE t1, t2, t3;
492
BACKUP DATABASE *, test to 'broken.bak';
493
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'BACKUP DATABASE *, test to 'broken.bak'' at line 1
494
BACKUP DATABASE *, db1, db2, db3 to 'broken.bak';
495
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'BACKUP DATABASE *, db1, db2, db3 to 'broken.bak'' at line 1