~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/parser.result

  • Committer: Brian Aker
  • Date: 2011-01-06 05:17:09 UTC
  • Revision ID: brian@tangent.org-20110106051709-oa0se8ur02uc6i9o
Added native functions into the function table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
CREATE TABLE table_25930_a ( blah INT );
242
242
CREATE TABLE table_25930_b SELECT "blah" - 1 FROM table_25930_a;
243
243
desc table_25930_b;
244
 
Field   Type    Null    Key     Default Extra
245
 
"blah" - 1      double  NO              NULL    
 
244
Field   Type    Null    Default Default_is_NULL On_Update
 
245
"blah" - 1      DOUBLE  NO              NO      
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 'atan2'
 
261
ERROR 42000: Incorrect parameter count in the call to native function 'atan'
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
 
ERROR 42000: Incorrect parameters in the call to native function 'abs'
 
325
abs(3 AS three)
 
326
3
326
327
select abs(3 three);
327
 
ERROR 42000: Incorrect parameters in the call to native function 'abs'
 
328
abs(3 three)
 
329
3
328
330
select abs(3 AS "three");
329
 
ERROR 42000: Incorrect parameters in the call to native function 'abs'
 
331
abs(3 AS "three")
 
332
3
330
333
select abs(3 "three");
331
 
ERROR 42000: Incorrect parameters in the call to native function 'abs'
 
334
abs(3 "three")
 
335
3
332
336
set @bar="bar";
333
337
set @foobar="foobar";
334
338
select instr("foobar", "bar");
391
395
atan(10)
392
396
1.47112767430373
393
397
select atan(10 AS p1);
394
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
398
atan(10 AS p1)
 
399
1.47112767430373
395
400
select atan(10 p1);
396
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
401
atan(10 p1)
 
402
1.47112767430373
397
403
select atan(10 AS "p1");
398
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
404
atan(10 AS "p1")
 
405
1.47112767430373
399
406
select atan(10 "p1");
400
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
407
atan(10 "p1")
 
408
1.47112767430373
401
409
select atan(10, 20);
402
410
atan(10, 20)
403
411
0.463647609000806
404
412
select atan(10 AS p1, 20);
405
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
413
atan(10 AS p1, 20)
 
414
0.463647609000806
406
415
select atan(10 p1, 20);
407
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
416
atan(10 p1, 20)
 
417
0.463647609000806
408
418
select atan(10 AS "p1", 20);
409
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
419
atan(10 AS "p1", 20)
 
420
0.463647609000806
410
421
select atan(10 "p1", 20);
411
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
422
atan(10 "p1", 20)
 
423
0.463647609000806
412
424
select atan(10, 20 AS p2);
413
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
425
atan(10, 20 AS p2)
 
426
0.463647609000806
414
427
select atan(10, 20 p2);
415
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
428
atan(10, 20 p2)
 
429
0.463647609000806
416
430
select atan(10, 20 AS "p2");
417
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
431
atan(10, 20 AS "p2")
 
432
0.463647609000806
418
433
select atan(10, 20 "p2");
419
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
434
atan(10, 20 "p2")
 
435
0.463647609000806
420
436
select atan(10 AS p1, 20 AS p2);
421
 
ERROR 42000: Incorrect parameters in the call to native function 'atan'
 
437
atan(10 AS p1, 20 AS p2)
 
438
0.463647609000806
422
439
DROP TABLE IF EXISTS t1;
423
440
SELECT "1997-12-31 23:59:59" + INTERVAL 1 SECOND;
424
441
"1997-12-31 23:59:59" + INTERVAL 1 SECOND
461
478
SELECT t1.*,t2.* FROM { OJ ((t1 LEFT OUTER JOIN t2 ON t1.a3=t2.a2) INNER JOIN t3 ON (t3.a1=t2.a2))};
462
479
a1      a2      a3      a4      a1      a2      a3      a4
463
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)};
464
483
a1      a2      a3      a4      a1      a2      a3      a4
465
484
SELECT * FROM {oj t1 LEFT OUTER JOIN t2 ON t1.a1=t2.a3} WHERE t1.a2 > 10;
466
485
a1      a2      a3      a4      a1      a2      a3      a4