~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/parser.result

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

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