~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/mysql.result

  • Committer: Monty Taylor
  • Date: 2008-11-16 05:36:13 UTC
  • mto: (584.1.9 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116053613-bld4rqxhlkb49c02
Split out cache_row and type_holder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
2
create table t1(a int);
3
3
insert into t1 values(1);
 
4
ERROR: DELIMITER must be followed by a 'delimiter' character or string
 
5
 
 
6
Test default delimiter ;
 
7
a
 
8
1
 
9
 
 
10
Test delimiter without arg
 
11
 
 
12
Test delimiter :
 
13
a
 
14
1
 
15
 
 
16
Test delimiter :
 
17
a
 
18
1
 
19
 
 
20
Test delimiter :;
 
21
a
 
22
1
 
23
 
 
24
Test delimiter //
 
25
a
 
26
1
 
27
 
 
28
Test delimiter MySQL
 
29
a
 
30
1
 
31
 
 
32
Test delimiter delimiter
 
33
a
 
34
1
 
35
Tables_in_test
 
36
t1
 
37
t2
 
38
t3
 
39
Tables_in_test
 
40
t1
4
41
_
5
42
Test delimiter : from command line
6
43
a
18
55
a
19
56
1
20
57
drop table t1;
 
58
create table t1(a int);
 
59
lock tables t1 write;
 
60
database()
 
61
test
 
62
unlock tables;
 
63
drop table t1;
21
64
+-------------------+
22
65
| __tañgè Ñãmé      |
23
66
+-------------------+
39
82
+------+------+---------------------------+
40
83
i       j       k
41
84
NULL    1       NULL
42
 
Field   Type    Null    Default Default_is_NULL On_Update
43
 
i       INTEGER YES             YES     
44
 
j       INTEGER NO              NO      
45
 
k       INTEGER YES             YES     
 
85
Field   Type    Null    Key     Default Extra
 
86
i       int     YES             NULL    
 
87
j       int     NO              NULL    
 
88
k       int     YES             NULL    
46
89
+------+---+------+
47
90
| i    | j | k    |
48
91
+------+---+------+
49
92
| NULL | 1 | NULL | 
50
93
+------+---+------+
51
 
+-------+---------+------+---------+-----------------+-----------+
52
 
| Field | Type    | Null | Default | Default_is_NULL | On_Update |
53
 
+-------+---------+------+---------+-----------------+-----------+
54
 
| i     | INTEGER | YES  |         | YES             |           | 
55
 
| j     | INTEGER | NO   |         | NO              |           | 
56
 
| k     | INTEGER | YES  |         | YES             |           | 
57
 
+-------+---------+------+---------+-----------------+-----------+
 
94
+-------+------+------+-----+---------+-------+
 
95
| Field | Type | Null | Key | Default | Extra |
 
96
+-------+------+------+-----+---------+-------+
 
97
| i     | int  | YES  |     | NULL    |       | 
 
98
| j     | int  | NO   |     | NULL    |       | 
 
99
| k     | int  | YES  |     | NULL    |       | 
 
100
+-------+------+------+-----+---------+-------+
58
101
i       s1
59
102
1       x
60
103
2       NULL
74
117
| NULL        | 
75
118
+-------------+
76
119
create table t1(a int, b varchar(255), c int);
77
 
Field   Type    Null    Default Default_is_NULL On_Update
78
 
a       INTEGER YES             YES     
79
 
b       VARCHAR YES             YES     
80
 
c       INTEGER YES             YES     
81
 
Field   Type    Null    Default Default_is_NULL On_Update
82
 
a       INTEGER YES             YES     
83
 
b       VARCHAR YES             YES     
84
 
c       INTEGER YES             YES     
 
120
Field   Type    Null    Key     Default Extra
 
121
a       int     YES             NULL    
 
122
b       varchar(255)    YES             NULL    
 
123
c       int     YES             NULL    
 
124
Field   Type    Null    Key     Default Extra
 
125
a       int     YES             NULL    
 
126
b       varchar(255)    YES             NULL    
 
127
c       int     YES             NULL    
85
128
drop table t1;
86
129
1
87
130
1
88
 
ERROR 1064 (42000) at line 4: 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 '' at line 1
89
 
ERROR: USE must be followed by a schema name
 
131
ERROR 1064 (42000) at line 4: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
 
132
ERROR: USE must be followed by a database name
90
133
create table t17583 (a int);
91
134
insert into t17583 (a) values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
92
135
insert into t17583 select a from t17583;
102
145
drop table t17583;
103
146
Test connect without db- or host-name => reconnect
104
147
Test connect with dbname only => new dbname, old hostname
105
 
ERROR 1064 (42000) at line 2: 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 'connecttest' at line 1
 
148
ERROR 1064 (42000) at line 2: 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 'connecttest' at line 1
106
149
Test connect with _invalid_ dbname only => new invalid dbname, old hostname
107
 
ERROR 1049 (42000): Unknown schema 'invalid'
108
 
ERROR 1049 (42000): Unknown schema 'invalid'
 
150
ERROR 1049 (42000): Unknown database 'invalid'
 
151
ERROR 1049 (42000): Unknown database 'invalid'
109
152
Test connect with dbname + hostname
110
153
Test connect with dbname + _invalid_ hostname
 
154
1
 
155
1
111
156
End of 5.0 tests
 
157
*************************** 1. row ***************************
 
158
1: 1
 
159
2: 2
 
160
3: 3
 
161
4: 4
 
162
5: 5
 
163
6: 6
 
164
7: 7
 
165
8: 8
 
166
9: 9
 
167
0: 0
 
168
1: 1
 
169
2: 2
 
170
3: 3
 
171
4: 4
 
172
5: 5
 
173
6: 6
 
174
7: 7
 
175
8: 8
 
176
9: 9
 
177
0: 0
 
178
1: 1
 
179
2: 2
 
180
3: 3
 
181
4: 4
 
182
5: 5
 
183
6: 6
 
184
7: 7
 
185
8: 8
 
186
9: 9
 
187
0: 0
 
188
1: 1
 
189
2: 2
 
190
3: 3
 
191
4: 4
 
192
5: 5
 
193
6: 6
 
194
7: 7
 
195
8: 8
 
196
9: 9
 
197
0: 0
 
198
1: 1
 
199
2: 2
 
200
3: 3
 
201
4: 4
 
202
5: 5
 
203
6: 6
 
204
7: 7
 
205
8: 8
 
206
9: 9
 
207
0: 0
 
208
1: 1
 
209
2: 2
 
210
3: 3
 
211
4: 4
 
212
5: 5
 
213
6: 6
 
214
7: 7
 
215
8: 8
 
216
9: 9
 
217
0: 0
 
218
1: 1
 
219
2: 2
 
220
3: 3
 
221
4: 4
 
222
5: 5
 
223
6: 6
 
224
7: 7
 
225
8: 8
 
226
9: 9
 
227
0: 0
 
228
1: 1
 
229
2: 2
 
230
3: 3
 
231
4: 4
 
232
5: 5
 
233
6: 6
 
234
7: 7
 
235
8: 8
 
236
9: 9
 
237
0: 0
 
238
1: 1
 
239
2: 2
 
240
3: 3
 
241
4: 4
 
242
5: 5
 
243
6: 6
 
244
7: 7
 
245
8: 8
 
246
9: 9
 
247
0: 0
 
248
1: 1
 
249
2: 2
 
250
3: 3
 
251
4: 4
 
252
5: 5
 
253
6: 6
 
254
7: 7
 
255
8: 8
 
256
9: 9
 
257
0: 0
 
258
1: 1
 
259
2: 2
 
260
3: 3
 
261
4: 4
 
262
5: 5
 
263
6: 6
 
264
7: 7
 
265
8: 8
 
266
9: 9
 
267
0: 0
 
268
1: 1
 
269
2: 2
 
270
3: 3
 
271
4: 4
 
272
5: 5
 
273
6: 6
 
274
7: 7
 
275
8: 8
 
276
9: 9
 
277
0: 0
 
278
1: 1
 
279
2: 2
 
280
3: 3
 
281
4: 4
 
282
5: 5
 
283
6: 6
 
284
7: 7
 
285
8: 8
 
286
9: 9
 
287
0: 0
 
288
1: 1
 
289
2: 2
 
290
3: 3
 
291
4: 4
 
292
5: 5
 
293
6: 6
 
294
7: 7
 
295
8: 8
 
296
9: 9
 
297
0: 0
 
298
1: 1
 
299
2: 2
 
300
3: 3
 
301
4: 4
 
302
5: 5
 
303
6: 6
 
304
7: 7
 
305
8: 8
 
306
9: 9
 
307
0: 0
 
308
1: 1
 
309
2: 2
 
310
3: 3
 
311
4: 4
 
312
5: 5
 
313
6: 6
 
314
7: 7
 
315
8: 8
 
316
9: 9
 
317
0: 0
 
318
1: 1
 
319
2: 2
 
320
3: 3
 
321
4: 4
 
322
5: 5
 
323
6: 6
 
324
7: 7
 
325
8: 8
 
326
9: 9
 
327
0: 0
 
328
1: 1
 
329
2: 2
 
330
3: 3
 
331
4: 4
 
332
5: 5
 
333
6: 6
 
334
7: 7
 
335
8: 8
 
336
9: 9
 
337
0: 0
 
338
1: 1
 
339
2: 2
 
340
3: 3
 
341
4: 4
 
342
5: 5
 
343
6: 6
 
344
7: 7
 
345
8: 8
 
346
9: 9
 
347
0: 0
 
348
+---+
 
349
| 1 |
 
350
+---+
 
351
| 1 | 
 
352
+---+
112
353
End of tests