~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
SET @save_sql_mode=@@sql_mode;
2
set SQL_MODE='';
3
create table ADDDATE(a int);
4
drop table ADDDATE;
5
create table ADDDATE (a int);
6
drop table ADDDATE;
7
create table BIT_AND(a int);
8
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 'BIT_AND(a int)' at line 1
9
create table BIT_AND (a int);
10
drop table BIT_AND;
11
create table BIT_OR(a int);
12
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 'BIT_OR(a int)' at line 1
13
create table BIT_OR (a int);
14
drop table BIT_OR;
15
create table BIT_XOR(a int);
16
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 'BIT_XOR(a int)' at line 1
17
create table BIT_XOR (a int);
18
drop table BIT_XOR;
19
create table CAST(a int);
20
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 'CAST(a int)' at line 1
21
create table CAST (a int);
22
drop table CAST;
23
create table COUNT(a int);
24
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 'COUNT(a int)' at line 1
25
create table COUNT (a int);
26
drop table COUNT;
27
create table CURDATE(a int);
28
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 'CURDATE(a int)' at line 1
29
create table CURDATE (a int);
30
drop table CURDATE;
31
create table CURTIME(a int);
32
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 'CURTIME(a int)' at line 1
33
create table CURTIME (a int);
34
drop table CURTIME;
35
create table DATE_ADD(a int);
36
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 'DATE_ADD(a int)' at line 1
37
create table DATE_ADD (a int);
38
drop table DATE_ADD;
39
create table DATE_SUB(a int);
40
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 'DATE_SUB(a int)' at line 1
41
create table DATE_SUB (a int);
42
drop table DATE_SUB;
43
create table EXTRACT(a int);
44
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 'EXTRACT(a int)' at line 1
45
create table EXTRACT (a int);
46
drop table EXTRACT;
47
create table GROUP_CONCAT(a int);
48
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 'GROUP_CONCAT(a int)' at line 1
49
create table GROUP_CONCAT (a int);
50
drop table GROUP_CONCAT;
51
create table GROUP_UNIQUE_USERS(a int);
52
drop table GROUP_UNIQUE_USERS;
53
create table GROUP_UNIQUE_USERS (a int);
54
drop table GROUP_UNIQUE_USERS;
55
create table MAX(a int);
56
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 'MAX(a int)' at line 1
57
create table MAX (a int);
58
drop table MAX;
59
create table MID(a int);
60
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 'MID(a int)' at line 1
61
create table MID (a int);
62
drop table MID;
63
create table MIN(a int);
64
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 'MIN(a int)' at line 1
65
create table MIN (a int);
66
drop table MIN;
67
create table NOW(a int);
68
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 'NOW(a int)' at line 1
69
create table NOW (a int);
70
drop table NOW;
71
create table POSITION(a int);
72
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 'POSITION(a int)' at line 1
73
create table POSITION (a int);
74
drop table POSITION;
75
create table SESSION_USER(a int);
76
drop table SESSION_USER;
77
create table SESSION_USER (a int);
78
drop table SESSION_USER;
79
create table STD(a int);
80
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 'STD(a int)' at line 1
81
create table STD (a int);
82
drop table STD;
83
create table STDDEV(a int);
84
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 'STDDEV(a int)' at line 1
85
create table STDDEV (a int);
86
drop table STDDEV;
87
create table STDDEV_POP(a int);
88
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 'STDDEV_POP(a int)' at line 1
89
create table STDDEV_POP (a int);
90
drop table STDDEV_POP;
91
create table STDDEV_SAMP(a int);
92
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 'STDDEV_SAMP(a int)' at line 1
93
create table STDDEV_SAMP (a int);
94
drop table STDDEV_SAMP;
95
create table SUBDATE(a int);
96
drop table SUBDATE;
97
create table SUBDATE (a int);
98
drop table SUBDATE;
99
create table SUBSTR(a int);
100
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 'SUBSTR(a int)' at line 1
101
create table SUBSTR (a int);
102
drop table SUBSTR;
103
create table SUBSTRING(a int);
104
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 'SUBSTRING(a int)' at line 1
105
create table SUBSTRING (a int);
106
drop table SUBSTRING;
107
create table SUM(a int);
108
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 'SUM(a int)' at line 1
109
create table SUM (a int);
110
drop table SUM;
111
create table SYSDATE(a int);
112
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 'SYSDATE(a int)' at line 1
113
create table SYSDATE (a int);
114
drop table SYSDATE;
115
create table SYSTEM_USER(a int);
116
drop table SYSTEM_USER;
117
create table SYSTEM_USER (a int);
118
drop table SYSTEM_USER;
119
create table TRIM(a int);
120
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 'TRIM(a int)' at line 1
121
create table TRIM (a int);
122
drop table TRIM;
123
create table UNIQUE_USERS(a int);
124
drop table UNIQUE_USERS;
125
create table UNIQUE_USERS (a int);
126
drop table UNIQUE_USERS;
127
create table VARIANCE(a int);
128
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 'VARIANCE(a int)' at line 1
129
create table VARIANCE (a int);
130
drop table VARIANCE;
131
create table VAR_POP(a int);
132
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 'VAR_POP(a int)' at line 1
133
create table VAR_POP (a int);
134
drop table VAR_POP;
135
create table VAR_SAMP(a int);
136
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 'VAR_SAMP(a int)' at line 1
137
create table VAR_SAMP (a int);
138
drop table VAR_SAMP;
139
set SQL_MODE='IGNORE_SPACE';
140
create table ADDDATE(a int);
141
drop table ADDDATE;
142
create table ADDDATE (a int);
143
drop table ADDDATE;
144
create table BIT_AND(a int);
145
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 'BIT_AND(a int)' at line 1
146
create table BIT_AND (a int);
147
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 'BIT_AND (a int)' at line 1
148
create table BIT_OR(a int);
149
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 'BIT_OR(a int)' at line 1
150
create table BIT_OR (a int);
151
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 'BIT_OR (a int)' at line 1
152
create table BIT_XOR(a int);
153
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 'BIT_XOR(a int)' at line 1
154
create table BIT_XOR (a int);
155
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 'BIT_XOR (a int)' at line 1
156
create table CAST(a int);
157
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 'CAST(a int)' at line 1
158
create table CAST (a int);
159
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 'CAST (a int)' at line 1
160
create table COUNT(a int);
161
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 'COUNT(a int)' at line 1
162
create table COUNT (a int);
163
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 'COUNT (a int)' at line 1
164
create table CURDATE(a int);
165
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 'CURDATE(a int)' at line 1
166
create table CURDATE (a int);
167
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 'CURDATE (a int)' at line 1
168
create table CURTIME(a int);
169
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 'CURTIME(a int)' at line 1
170
create table CURTIME (a int);
171
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 'CURTIME (a int)' at line 1
172
create table DATE_ADD(a int);
173
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 'DATE_ADD(a int)' at line 1
174
create table DATE_ADD (a int);
175
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 'DATE_ADD (a int)' at line 1
176
create table DATE_SUB(a int);
177
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 'DATE_SUB(a int)' at line 1
178
create table DATE_SUB (a int);
179
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 'DATE_SUB (a int)' at line 1
180
create table EXTRACT(a int);
181
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 'EXTRACT(a int)' at line 1
182
create table EXTRACT (a int);
183
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 'EXTRACT (a int)' at line 1
184
create table GROUP_CONCAT(a int);
185
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 'GROUP_CONCAT(a int)' at line 1
186
create table GROUP_CONCAT (a int);
187
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 'GROUP_CONCAT (a int)' at line 1
188
create table GROUP_UNIQUE_USERS(a int);
189
drop table GROUP_UNIQUE_USERS;
190
create table GROUP_UNIQUE_USERS (a int);
191
drop table GROUP_UNIQUE_USERS;
192
create table MAX(a int);
193
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 'MAX(a int)' at line 1
194
create table MAX (a int);
195
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 'MAX (a int)' at line 1
196
create table MID(a int);
197
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 'MID(a int)' at line 1
198
create table MID (a int);
199
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 'MID (a int)' at line 1
200
create table MIN(a int);
201
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 'MIN(a int)' at line 1
202
create table MIN (a int);
203
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 'MIN (a int)' at line 1
204
create table NOW(a int);
205
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 'NOW(a int)' at line 1
206
create table NOW (a int);
207
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 'NOW (a int)' at line 1
208
create table POSITION(a int);
209
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 'POSITION(a int)' at line 1
210
create table POSITION (a int);
211
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 'POSITION (a int)' at line 1
212
create table SESSION_USER(a int);
213
drop table SESSION_USER;
214
create table SESSION_USER (a int);
215
drop table SESSION_USER;
216
create table STD(a int);
217
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 'STD(a int)' at line 1
218
create table STD (a int);
219
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 'STD (a int)' at line 1
220
create table STDDEV(a int);
221
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 'STDDEV(a int)' at line 1
222
create table STDDEV (a int);
223
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 'STDDEV (a int)' at line 1
224
create table STDDEV_POP(a int);
225
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 'STDDEV_POP(a int)' at line 1
226
create table STDDEV_POP (a int);
227
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 'STDDEV_POP (a int)' at line 1
228
create table STDDEV_SAMP(a int);
229
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 'STDDEV_SAMP(a int)' at line 1
230
create table STDDEV_SAMP (a int);
231
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 'STDDEV_SAMP (a int)' at line 1
232
create table SUBDATE(a int);
233
drop table SUBDATE;
234
create table SUBDATE (a int);
235
drop table SUBDATE;
236
create table SUBSTR(a int);
237
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 'SUBSTR(a int)' at line 1
238
create table SUBSTR (a int);
239
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 'SUBSTR (a int)' at line 1
240
create table SUBSTRING(a int);
241
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 'SUBSTRING(a int)' at line 1
242
create table SUBSTRING (a int);
243
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 'SUBSTRING (a int)' at line 1
244
create table SUM(a int);
245
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 'SUM(a int)' at line 1
246
create table SUM (a int);
247
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 'SUM (a int)' at line 1
248
create table SYSDATE(a int);
249
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 'SYSDATE(a int)' at line 1
250
create table SYSDATE (a int);
251
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 'SYSDATE (a int)' at line 1
252
create table SYSTEM_USER(a int);
253
drop table SYSTEM_USER;
254
create table SYSTEM_USER (a int);
255
drop table SYSTEM_USER;
256
create table TRIM(a int);
257
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 'TRIM(a int)' at line 1
258
create table TRIM (a int);
259
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 'TRIM (a int)' at line 1
260
create table UNIQUE_USERS(a int);
261
drop table UNIQUE_USERS;
262
create table UNIQUE_USERS (a int);
263
drop table UNIQUE_USERS;
264
create table VARIANCE(a int);
265
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 'VARIANCE(a int)' at line 1
266
create table VARIANCE (a int);
267
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 'VARIANCE (a int)' at line 1
268
create table VAR_POP(a int);
269
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 'VAR_POP(a int)' at line 1
270
create table VAR_POP (a int);
271
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 'VAR_POP (a int)' at line 1
272
create table VAR_SAMP(a int);
273
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 'VAR_SAMP(a int)' at line 1
274
create table VAR_SAMP (a int);
275
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 'VAR_SAMP (a int)' at line 1
276
DROP TABLE IF EXISTS table_25930_a;
277
DROP TABLE IF EXISTS table_25930_b;
278
SET SQL_MODE = 'ANSI_QUOTES';
279
CREATE TABLE table_25930_a ( "blah" INT );
280
CREATE TABLE table_25930_b SELECT "blah" - 1 FROM table_25930_a;
281
desc table_25930_b;
282
Field	Type	Null	Key	Default	Extra
283
"blah" - 1	bigint(12)	YES		NULL	
284
DROP TABLE table_25930_a;
285
DROP TABLE table_25930_b;
286
SET @@sql_mode=@save_sql_mode;
287
select pi(3.14);
288
ERROR 42000: Incorrect parameter count in the call to native function 'pi'
289
select tan();
290
ERROR 42000: Incorrect parameter count in the call to native function 'tan'
291
select tan(1, 2);
292
ERROR 42000: Incorrect parameter count in the call to native function 'tan'
293
select makedate(1);
294
ERROR 42000: Incorrect parameter count in the call to native function 'makedate'
295
select makedate(1, 2, 3);
296
ERROR 42000: Incorrect parameter count in the call to native function 'makedate'
297
select maketime();
298
ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
299
select maketime(1);
300
ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
301
select maketime(1, 2);
302
ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
303
select maketime(1, 2, 3, 4);
304
ERROR 42000: Incorrect parameter count in the call to native function 'maketime'
305
select atan();
306
ERROR 42000: Incorrect parameter count in the call to native function 'atan'
307
select atan2(1, 2, 3);
308
ERROR 42000: Incorrect parameter count in the call to native function 'atan2'
309
select concat();
310
ERROR 42000: Incorrect parameter count in the call to native function 'concat'
311
select concat("foo");
312
concat("foo")
313
foo
314
select concat_ws();
315
ERROR 42000: Incorrect parameter count in the call to native function 'concat_ws'
316
select concat_ws("foo");
317
ERROR 42000: Incorrect parameter count in the call to native function 'concat_ws'
318
select encrypt();
319
ERROR 42000: Incorrect parameter count in the call to native function 'encrypt'
320
select encrypt(1, 2, 3);
321
ERROR 42000: Incorrect parameter count in the call to native function 'encrypt'
322
select des_encrypt("p1", "p2", "not expected");
323
ERROR 42000: Incorrect parameter count in the call to native function 'des_encrypt'
324
select des_decrypt("p1", "p2", "not expected");
325
ERROR 42000: Incorrect parameter count in the call to native function 'des_decrypt'
326
select elt();
327
ERROR 42000: Incorrect parameter count in the call to native function 'elt'
328
select elt(1);
329
ERROR 42000: Incorrect parameter count in the call to native function 'elt'
330
select export_set();
331
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
332
select export_set("p1");
333
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
334
select export_set("p1", "p2");
335
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
336
select export_set("p1", "p2", "p3", "p4", "p5", "p6");
337
ERROR 42000: Incorrect parameter count in the call to native function 'export_set'
338
select field();
339
ERROR 42000: Incorrect parameter count in the call to native function 'field'
340
select field("p1");
341
ERROR 42000: Incorrect parameter count in the call to native function 'field'
342
select from_unixtime();
343
ERROR 42000: Incorrect parameter count in the call to native function 'from_unixtime'
344
select from_unixtime(1, 2, 3);
345
ERROR 42000: Incorrect parameter count in the call to native function 'from_unixtime'
346
select unix_timestamp(1, 2);
347
ERROR 42000: Incorrect parameter count in the call to native function 'unix_timestamp'
348
select greatest();
349
ERROR 42000: Incorrect parameter count in the call to native function 'greatest'
350
select greatest(12);
351
ERROR 42000: Incorrect parameter count in the call to native function 'greatest'
352
select last_insert_id(1, 2);
353
ERROR 42000: Incorrect parameter count in the call to native function 'last_insert_id'
354
select least();
355
ERROR 42000: Incorrect parameter count in the call to native function 'least'
356
select least(12);
357
ERROR 42000: Incorrect parameter count in the call to native function 'least'
358
select locate();
359
ERROR 42000: Incorrect parameter count in the call to native function 'locate'
360
select locate(1);
361
ERROR 42000: Incorrect parameter count in the call to native function 'locate'
362
select locate(1, 2, 3, 4);
363
ERROR 42000: Incorrect parameter count in the call to native function 'locate'
364
select log();
365
ERROR 42000: Incorrect parameter count in the call to native function 'log'
366
select log(1, 2, 3);
367
ERROR 42000: Incorrect parameter count in the call to native function 'log'
368
select make_set();
369
ERROR 42000: Incorrect parameter count in the call to native function 'make_set'
370
select make_set(1);
371
ERROR 42000: Incorrect parameter count in the call to native function 'make_set'
372
select master_pos_wait();
373
ERROR 42000: Incorrect parameter count in the call to native function 'master_pos_wait'
374
select master_pos_wait(1);
375
ERROR 42000: Incorrect parameter count in the call to native function 'master_pos_wait'
376
select master_pos_wait(1, 2, 3, 4);
377
ERROR 42000: Incorrect parameter count in the call to native function 'master_pos_wait'
378
select rand(1, 2, 3);
379
ERROR 42000: Incorrect parameter count in the call to native function 'rand'
380
select round(1, 2, 3);
381
ERROR 42000: Incorrect parameter count in the call to native function 'round'
382
select yearweek();
383
ERROR 42000: Incorrect parameter count in the call to native function 'yearweek'
384
select yearweek(1, 2, 3);
385
ERROR 42000: Incorrect parameter count in the call to native function 'yearweek'
386
select abs(3);
387
abs(3)
388
3
389
select abs(3 AS three);
390
ERROR 42000: Incorrect parameters in the call to native function 'abs'
391
select abs(3 three);
392
ERROR 42000: Incorrect parameters in the call to native function 'abs'
393
select abs(3 AS "three");
394
ERROR 42000: Incorrect parameters in the call to native function 'abs'
395
select abs(3 "three");
396
ERROR 42000: Incorrect parameters in the call to native function 'abs'
397
set @bar="bar";
398
set @foobar="foobar";
399
select instr("foobar", "bar");
400
instr("foobar", "bar")
401
4
402
select instr("foobar" AS p1, "bar");
403
ERROR 42000: Incorrect parameters in the call to native function 'instr'
404
select instr("foobar" p1, "bar");
405
ERROR 42000: Incorrect parameters in the call to native function 'instr'
406
select instr("foobar" AS "p1", "bar");
407
ERROR 42000: Incorrect parameters in the call to native function 'instr'
408
select instr("foobar" "p1", "bar");
409
instr("foobar" "p1", "bar")
410
4
411
select instr(@foobar "p1", "bar");
412
ERROR 42000: Incorrect parameters in the call to native function 'instr'
413
select instr("foobar", "bar" AS p2);
414
ERROR 42000: Incorrect parameters in the call to native function 'instr'
415
select instr("foobar", "bar" p2);
416
ERROR 42000: Incorrect parameters in the call to native function 'instr'
417
select instr("foobar", "bar" AS "p2");
418
ERROR 42000: Incorrect parameters in the call to native function 'instr'
419
select instr("foobar", "bar" "p2");
420
instr("foobar", "bar" "p2")
421
0
422
select instr("foobar", @bar "p2");
423
ERROR 42000: Incorrect parameters in the call to native function 'instr'
424
select instr("foobar" AS p1, "bar" AS p2);
425
ERROR 42000: Incorrect parameters in the call to native function 'instr'
426
select conv(255, 10, 16);
427
conv(255, 10, 16)
428
FF
429
select conv(255 AS p1, 10, 16);
430
ERROR 42000: Incorrect parameters in the call to native function 'conv'
431
select conv(255 p1, 10, 16);
432
ERROR 42000: Incorrect parameters in the call to native function 'conv'
433
select conv(255 AS "p1", 10, 16);
434
ERROR 42000: Incorrect parameters in the call to native function 'conv'
435
select conv(255 "p1", 10, 16);
436
ERROR 42000: Incorrect parameters in the call to native function 'conv'
437
select conv(255, 10 AS p2, 16);
438
ERROR 42000: Incorrect parameters in the call to native function 'conv'
439
select conv(255, 10 p2, 16);
440
ERROR 42000: Incorrect parameters in the call to native function 'conv'
441
select conv(255, 10 AS "p2", 16);
442
ERROR 42000: Incorrect parameters in the call to native function 'conv'
443
select conv(255, 10 "p2", 16);
444
ERROR 42000: Incorrect parameters in the call to native function 'conv'
445
select conv(255, 10, 16 AS p3);
446
ERROR 42000: Incorrect parameters in the call to native function 'conv'
447
select conv(255, 10, 16 p3);
448
ERROR 42000: Incorrect parameters in the call to native function 'conv'
449
select conv(255, 10, 16 AS "p3");
450
ERROR 42000: Incorrect parameters in the call to native function 'conv'
451
select conv(255, 10, 16 "p3");
452
ERROR 42000: Incorrect parameters in the call to native function 'conv'
453
select conv(255 AS p1, 10 AS p2, 16 AS p3);
454
ERROR 42000: Incorrect parameters in the call to native function 'conv'
455
select atan(10);
456
atan(10)
457
1.4711276743037347
458
select atan(10 AS p1);
459
ERROR 42000: Incorrect parameters in the call to native function 'atan'
460
select atan(10 p1);
461
ERROR 42000: Incorrect parameters in the call to native function 'atan'
462
select atan(10 AS "p1");
463
ERROR 42000: Incorrect parameters in the call to native function 'atan'
464
select atan(10 "p1");
465
ERROR 42000: Incorrect parameters in the call to native function 'atan'
466
select atan(10, 20);
467
atan(10, 20)
468
0.4636476090008061
469
select atan(10 AS p1, 20);
470
ERROR 42000: Incorrect parameters in the call to native function 'atan'
471
select atan(10 p1, 20);
472
ERROR 42000: Incorrect parameters in the call to native function 'atan'
473
select atan(10 AS "p1", 20);
474
ERROR 42000: Incorrect parameters in the call to native function 'atan'
475
select atan(10 "p1", 20);
476
ERROR 42000: Incorrect parameters in the call to native function 'atan'
477
select atan(10, 20 AS p2);
478
ERROR 42000: Incorrect parameters in the call to native function 'atan'
479
select atan(10, 20 p2);
480
ERROR 42000: Incorrect parameters in the call to native function 'atan'
481
select atan(10, 20 AS "p2");
482
ERROR 42000: Incorrect parameters in the call to native function 'atan'
483
select atan(10, 20 "p2");
484
ERROR 42000: Incorrect parameters in the call to native function 'atan'
485
select atan(10 AS p1, 20 AS p2);
486
ERROR 42000: Incorrect parameters in the call to native function 'atan'
487
DROP TABLE IF EXISTS t1;
488
SELECT STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE;
489
STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL 10 MINUTE
490
NULL
491
SELECT STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL (INTERVAL(1,2,3) + 1) MINUTE;
492
STR_TO_DATE('10:00 PM', '%h:%i %p') + INTERVAL (INTERVAL(1,2,3) + 1) MINUTE
493
NULL
494
SELECT "1997-12-31 23:59:59" + INTERVAL 1 SECOND;
495
"1997-12-31 23:59:59" + INTERVAL 1 SECOND
496
1998-01-01 00:00:00
497
SELECT 1 + INTERVAL(1,0,1,2) + 1;
498
1 + INTERVAL(1,0,1,2) + 1
499
4
500
SELECT INTERVAL(1^1,0,1,2) + 1;
501
INTERVAL(1^1,0,1,2) + 1
502
2
503
SELECT INTERVAL(1,0+1,2,3) * 5.5;
504
INTERVAL(1,0+1,2,3) * 5.5
505
5.5
506
SELECT INTERVAL(3,3,1+3,4+4) / 0.5;
507
INTERVAL(3,3,1+3,4+4) / 0.5
508
2.0000
509
SELECT (INTERVAL(1,0,1,2) + 5) * 7 + INTERVAL(1,0,1,2) / 2;
510
(INTERVAL(1,0,1,2) + 5) * 7 + INTERVAL(1,0,1,2) / 2
511
50.0000
512
SELECT INTERVAL(1,0,1,2) + 1, 5 * INTERVAL(1,0,1,2);
513
INTERVAL(1,0,1,2) + 1	5 * INTERVAL(1,0,1,2)
514
3	10
515
SELECT INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3);
516
INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3)
517
2
518
SELECT 1^1 + INTERVAL 1+1 SECOND & 1 + INTERVAL 1+1 SECOND;
519
1^1 + INTERVAL 1+1 SECOND & 1 + INTERVAL 1+1 SECOND
520
NULL
521
SELECT 1%2 - INTERVAL 1^1 SECOND | 1%2 - INTERVAL 1^1 SECOND;
522
1%2 - INTERVAL 1^1 SECOND | 1%2 - INTERVAL 1^1 SECOND
523
NULL
524
CREATE TABLE t1 (a INT, b DATETIME);
525
INSERT INTO t1 VALUES (INTERVAL(3,2,1) + 1, "1997-12-31 23:59:59" + INTERVAL 1 SECOND);
526
SELECT * FROM t1 WHERE a = INTERVAL(3,2,1) + 1;
527
a	b
528
3	1998-01-01 00:00:00
529
DROP TABLE t1;
530
DROP TABLE IF EXISTS t1,t2,t3;
531
CREATE TABLE t1 (a1 INT, a2 INT, a3 INT, a4 DATETIME);
532
CREATE TABLE t2 LIKE t1;
533
CREATE TABLE t3 LIKE t1;
534
SELECT t1.* FROM t1 AS t0, { OJ t2 INNER JOIN t1 ON (t1.a1=t2.a1) } WHERE t0.a3=2;
535
a1	a2	a3	a4
536
SELECT t1.*,t2.* FROM { OJ ((t1 INNER JOIN t2 ON (t1.a1=t2.a2)) LEFT OUTER JOIN t3 ON t3.a3=t2.a1)};
537
a1	a2	a3	a4	a1	a2	a3	a4
538
SELECT t1.*,t2.* FROM { OJ ((t1 LEFT OUTER JOIN t2 ON t1.a3=t2.a2) INNER JOIN t3 ON (t3.a1=t2.a2))};
539
a1	a2	a3	a4	a1	a2	a3	a4
540
SELECT t1.*,t2.* FROM { OJ (t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a2) CROSS JOIN t3 ON (t3.a2=t2.a3)};
541
a1	a2	a3	a4	a1	a2	a3	a4
542
SELECT * FROM {oj t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a3} WHERE t1.a2 > 10;
543
a1	a2	a3	a4	a1	a2	a3	a4
544
SELECT {fn CONCAT(a1,a2)} FROM t1;
545
{fn CONCAT(a1,a2)}
546
UPDATE t3 SET a4={d '1789-07-14'} WHERE a1=0;
547
SELECT a1, a4 FROM t2 WHERE a4 LIKE {fn UCASE('1789-07-14')};
548
a1	a4
549
DROP TABLE t1, t2, t3;
550
BACKUP DATABASE *, test to 'broken.bak';
551
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 ' test to 'broken.bak'' at line 1
552
BACKUP DATABASE *, db1, db2, db3 to 'broken.bak';
553
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 ' db1, db2, db3 to 'broken.bak'' at line 1