347
357
# Test coverage with edge conditions
359
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
362
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
364
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
352
365
select tan(1, 2);
367
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
354
368
select makedate(1);
369
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
355
370
select makedate(1, 2, 3);
372
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
374
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
376
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
377
select maketime(1, 2);
378
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
379
select maketime(1, 2, 3, 4);
381
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
383
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
358
384
select atan2(1, 2, 3);
386
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
361
388
select concat("foo");
390
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
363
391
select concat_ws();
392
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
364
393
select concat_ws("foo");
395
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
397
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
400
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
369
401
select export_set();
402
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
370
403
select export_set("p1");
404
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
371
405
select export_set("p1", "p2");
406
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
372
407
select export_set("p1", "p2", "p3", "p4", "p5", "p6");
409
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
411
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
375
412
select field("p1");
414
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
377
415
select from_unixtime();
416
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
378
417
select from_unixtime(1, 2, 3);
419
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
380
420
select unix_timestamp(1, 2);
422
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
382
423
select greatest();
424
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
383
425
select greatest(12);
427
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
385
428
select last_insert_id(1, 2);
430
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
432
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
388
433
select least(12);
435
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
437
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
391
438
select locate(1);
439
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
392
440
select locate(1, 2, 3, 4);
442
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
444
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
395
445
select log(1, 2, 3);
447
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
397
448
select make_set();
449
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
398
450
select make_set(1);
452
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
453
select master_pos_wait();
454
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
455
select master_pos_wait(1);
456
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
457
select master_pos_wait(1, 2, 3, 4);
459
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
400
460
select rand(1, 2, 3);
462
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
402
463
select round(1, 2, 3);
465
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
467
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
468
select yearweek(1, 2, 3);
405
471
# Bug#24736: UDF functions parsed as Stored Functions