~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/parser.result

  • Committer: Andy Lester
  • Date: 2008-08-10 02:15:48 UTC
  • mto: (266.1.31 use-replace-funcs)
  • mto: This revision was merged to the branch mainline in revision 295.
  • Revision ID: andy@petdance.com-20080810021548-0zx8nhzva6al10k3
Added a proper const qualifer.

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 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);
78
 
drop table SUBDATE;
79
 
create table SUBDATE (a int);
80
 
drop table SUBDATE;
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);
118
 
drop table ADDDATE;
119
 
create table ADDDATE (a int);
120
 
drop table ADDDATE;
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);
194
 
drop table SUBDATE;
195
 
create table SUBDATE (a int);
196
 
drop table SUBDATE;
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;
243
 
desc table_25930_b;
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;
248
 
select pi(3.14);
249
 
ERROR 42000: Incorrect parameter count in the call to native function 'pi'
250
 
select tan();
251
 
ERROR 42000: Incorrect parameter count in the call to native function 'tan'
252
 
select tan(1, 2);
253
 
ERROR 42000: Incorrect parameter count in the call to native function 'tan'
254
 
select makedate(1);
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'
258
 
select atan();
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'
262
 
select concat();
263
 
ERROR 42000: Incorrect parameter count in the call to native function 'concat'
264
 
select concat("foo");
265
 
concat("foo")
266
 
foo
267
 
select concat_ws();
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'
271
 
select elt();
272
 
ERROR 42000: Incorrect parameter count in the call to native function 'elt'
273
 
select elt(1);
274
 
ERROR 42000: Incorrect parameter count in the call to native function 'elt'
275
 
select export_set();
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'
283
 
select field();
284
 
ERROR 42000: Incorrect parameter count in the call to native function 'field'
285
 
select field("p1");
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'
293
 
select greatest();
294
 
ERROR 42000: Incorrect parameter count in the call to native function 'greatest'
295
 
select greatest(12);
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'
299
 
select least();
300
 
ERROR 42000: Incorrect parameter count in the call to native function 'least'
301
 
select least(12);
302
 
ERROR 42000: Incorrect parameter count in the call to native function 'least'
303
 
select locate();
304
 
ERROR 42000: Incorrect parameter count in the call to native function 'locate'
305
 
select locate(1);
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'
309
 
select log();
310
 
ERROR 42000: Incorrect parameter count in the call to native function 'log'
311
 
select log(1, 2, 3);
312
 
ERROR 42000: Incorrect parameter count in the call to native function 'log'
313
 
select make_set();
314
 
ERROR 42000: Incorrect parameter count in the call to native function 'make_set'
315
 
select make_set(1);
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'
321
 
select abs(3);
322
 
abs(3)
323
 
3
324
 
select abs(3 AS three);
325
 
abs(3 AS three)
326
 
3
327
 
select abs(3 three);
328
 
abs(3 three)
329
 
3
330
 
select abs(3 AS "three");
331
 
abs(3 AS "three")
332
 
3
333
 
select abs(3 "three");
334
 
abs(3 "three")
335
 
3
336
 
set @bar="bar";
337
 
set @foobar="foobar";
338
 
select instr("foobar", "bar");
339
 
instr("foobar", "bar")
340
 
4
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")
349
 
4
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")
360
 
0
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);
366
 
conv(255, 10, 16)
367
 
FF
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'
394
 
select atan(10);
395
 
atan(10)
396
 
1.47112767430373
397
 
select atan(10 AS p1);
398
 
atan(10 AS p1)
399
 
1.47112767430373
400
 
select atan(10 p1);
401
 
atan(10 p1)
402
 
1.47112767430373
403
 
select atan(10 AS "p1");
404
 
atan(10 AS "p1")
405
 
1.47112767430373
406
 
select atan(10 "p1");
407
 
atan(10 "p1")
408
 
1.47112767430373
409
 
select atan(10, 20);
410
 
atan(10, 20)
411
 
0.463647609000806
412
 
select atan(10 AS p1, 20);
413
 
atan(10 AS p1, 20)
414
 
0.463647609000806
415
 
select atan(10 p1, 20);
416
 
atan(10 p1, 20)
417
 
0.463647609000806
418
 
select atan(10 AS "p1", 20);
419
 
atan(10 AS "p1", 20)
420
 
0.463647609000806
421
 
select atan(10 "p1", 20);
422
 
atan(10 "p1", 20)
423
 
0.463647609000806
424
 
select atan(10, 20 AS p2);
425
 
atan(10, 20 AS p2)
426
 
0.463647609000806
427
 
select atan(10, 20 p2);
428
 
atan(10, 20 p2)
429
 
0.463647609000806
430
 
select atan(10, 20 AS "p2");
431
 
atan(10, 20 AS "p2")
432
 
0.463647609000806
433
 
select atan(10, 20 "p2");
434
 
atan(10, 20 "p2")
435
 
0.463647609000806
436
 
select atan(10 AS p1, 20 AS p2);
437
 
atan(10 AS p1, 20 AS p2)
438
 
0.463647609000806
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
445
 
4
446
 
SELECT INTERVAL(1,0,1,2) + 1;
447
 
INTERVAL(1,0,1,2) + 1
448
 
3
449
 
SELECT INTERVAL(1,0+1,2,3) * 5.5;
450
 
INTERVAL(1,0+1,2,3) * 5.5
451
 
5.5
452
 
SELECT INTERVAL(3,3,1+3,4+4) / 0.5;
453
 
INTERVAL(3,3,1+3,4+4) / 0.5
454
 
2.0000
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
457
 
50.0000
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)
460
 
3       10
461
 
SELECT INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3);
462
 
INTERVAL(0,(1*5)/2) + INTERVAL(5,4,3)
463
 
2
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;
467
 
a       b
468
 
3       1998-01-01 00:00:00
469
 
DROP TABLE t1;
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;
475
 
a1      a2      a3      a4
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;
487
 
{fn CONCAT(a1,a2)}
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')};
490
 
a1      a4
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