~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/parser.test

  • Committer: Diego Medina
  • Date: 2009-08-25 18:22:32 UTC
  • mto: This revision was merged to the branch mainline in revision 1143.
  • Revision ID: diego.medina@sun.com-20090825182232-0v49kvywor4xnpl2
Renamed ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT to ER_WRONG_PARAMCOUNT_TO_FUNCTION

Show diffs side-by-side

added added

removed removed

Lines of Context:
346
346
 
347
347
# Test coverage with edge conditions
348
348
 
 
349
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
349
350
select pi(3.14);
350
351
 
 
352
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
351
353
select tan();
 
354
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
352
355
select tan(1, 2);
353
356
 
 
357
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
354
358
select makedate(1);
 
359
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
355
360
select makedate(1, 2, 3);
356
361
 
 
362
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
357
363
select atan();
 
364
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
358
365
select atan2(1, 2, 3);
359
366
 
 
367
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
360
368
select concat();
361
369
select concat("foo");
362
370
 
 
371
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
363
372
select concat_ws();
 
373
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
364
374
select concat_ws("foo");
365
375
 
 
376
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
366
377
select elt();
 
378
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
367
379
select elt(1);
368
380
 
 
381
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
369
382
select export_set();
 
383
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
370
384
select export_set("p1");
 
385
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
371
386
select export_set("p1", "p2");
 
387
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
372
388
select export_set("p1", "p2", "p3", "p4", "p5", "p6");
373
389
 
 
390
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
374
391
select field();
 
392
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
375
393
select field("p1");
376
394
 
 
395
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
377
396
select from_unixtime();
 
397
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
378
398
select from_unixtime(1, 2, 3);
379
399
 
 
400
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
380
401
select unix_timestamp(1, 2);
381
402
 
 
403
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
382
404
select greatest();
 
405
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
383
406
select greatest(12);
384
407
 
 
408
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
385
409
select last_insert_id(1, 2);
386
410
 
 
411
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
387
412
select least();
 
413
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
388
414
select least(12);
389
415
 
 
416
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
390
417
select locate();
 
418
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
391
419
select locate(1);
 
420
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
392
421
select locate(1, 2, 3, 4);
393
422
 
 
423
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
394
424
select log();
 
425
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
395
426
select log(1, 2, 3);
396
427
 
 
428
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
397
429
select make_set();
 
430
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
398
431
select make_set(1);
399
432
 
 
433
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
400
434
select rand(1, 2, 3);
401
435
 
 
436
-- error ER_WRONG_PARAMCOUNT_TO_FUNCTION
402
437
select round(1, 2, 3);
403
438
 
404
439
#