~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/parser.result

Merge Joe, plus I updated the tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
CREATE TABLE table_25930_b SELECT "blah" - 1 FROM table_25930_a;
243
243
desc table_25930_b;
244
244
Field   Type    Null    Default Default_is_NULL On_Update
245
 
"blah" - 1      DOUBLE  NO              NO      
 
245
"blah" - 1      DOUBLE  FALSE           FALSE   
246
246
DROP TABLE table_25930_a;
247
247
DROP TABLE table_25930_b;
248
248
select pi(3.14);
258
258
select atan();
259
259
ERROR 42000: Incorrect parameter count in the call to native function 'atan'
260
260
select atan2(1, 2, 3);
261
 
ERROR 42000: Incorrect parameter count in the call to native function 'atan'
 
261
ERROR 42000: Incorrect parameter count in the call to native function 'atan2'
262
262
select concat();
263
263
ERROR 42000: Incorrect parameter count in the call to native function 'concat'
264
264
select concat("foo");
322
322
abs(3)
323
323
3
324
324
select abs(3 AS three);
325
 
abs(3 AS three)
326
 
3
 
325
ERROR 42000: Incorrect parameters in the call to native function 'abs'
327
326
select abs(3 three);
328
 
abs(3 three)
329
 
3
 
327
ERROR 42000: Incorrect parameters in the call to native function 'abs'
330
328
select abs(3 AS "three");
331
 
abs(3 AS "three")
332
 
3
 
329
ERROR 42000: Incorrect parameters in the call to native function 'abs'
333
330
select abs(3 "three");
334
 
abs(3 "three")
335
 
3
 
331
ERROR 42000: Incorrect parameters in the call to native function 'abs'
336
332
set @bar="bar";
337
333
set @foobar="foobar";
338
334
select instr("foobar", "bar");
395
391
atan(10)
396
392
1.47112767430373
397
393
select atan(10 AS p1);
398
 
atan(10 AS p1)
399
 
1.47112767430373
 
394
ERROR 42000: Incorrect parameters in the call to native function 'atan'
400
395
select atan(10 p1);
401
 
atan(10 p1)
402
 
1.47112767430373
 
396
ERROR 42000: Incorrect parameters in the call to native function 'atan'
403
397
select atan(10 AS "p1");
404
 
atan(10 AS "p1")
405
 
1.47112767430373
 
398
ERROR 42000: Incorrect parameters in the call to native function 'atan'
406
399
select atan(10 "p1");
407
 
atan(10 "p1")
408
 
1.47112767430373
 
400
ERROR 42000: Incorrect parameters in the call to native function 'atan'
409
401
select atan(10, 20);
410
402
atan(10, 20)
411
403
0.463647609000806
412
404
select atan(10 AS p1, 20);
413
 
atan(10 AS p1, 20)
414
 
0.463647609000806
 
405
ERROR 42000: Incorrect parameters in the call to native function 'atan'
415
406
select atan(10 p1, 20);
416
 
atan(10 p1, 20)
417
 
0.463647609000806
 
407
ERROR 42000: Incorrect parameters in the call to native function 'atan'
418
408
select atan(10 AS "p1", 20);
419
 
atan(10 AS "p1", 20)
420
 
0.463647609000806
 
409
ERROR 42000: Incorrect parameters in the call to native function 'atan'
421
410
select atan(10 "p1", 20);
422
 
atan(10 "p1", 20)
423
 
0.463647609000806
 
411
ERROR 42000: Incorrect parameters in the call to native function 'atan'
424
412
select atan(10, 20 AS p2);
425
 
atan(10, 20 AS p2)
426
 
0.463647609000806
 
413
ERROR 42000: Incorrect parameters in the call to native function 'atan'
427
414
select atan(10, 20 p2);
428
 
atan(10, 20 p2)
429
 
0.463647609000806
 
415
ERROR 42000: Incorrect parameters in the call to native function 'atan'
430
416
select atan(10, 20 AS "p2");
431
 
atan(10, 20 AS "p2")
432
 
0.463647609000806
 
417
ERROR 42000: Incorrect parameters in the call to native function 'atan'
433
418
select atan(10, 20 "p2");
434
 
atan(10, 20 "p2")
435
 
0.463647609000806
 
419
ERROR 42000: Incorrect parameters in the call to native function 'atan'
436
420
select atan(10 AS p1, 20 AS p2);
437
 
atan(10 AS p1, 20 AS p2)
438
 
0.463647609000806
 
421
ERROR 42000: Incorrect parameters in the call to native function 'atan'
439
422
DROP TABLE IF EXISTS t1;
440
423
SELECT "1997-12-31 23:59:59" + INTERVAL 1 SECOND;
441
424
"1997-12-31 23:59:59" + INTERVAL 1 SECOND
442
 
1998-01-01 00:00:00.000000
 
425
1998-01-01 00:00:00
443
426
SELECT 1 + INTERVAL(1,0,1,2) + 1;
444
427
1 + INTERVAL(1,0,1,2) + 1
445
428
4