1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Check the number of args to SPs.

Fixes bug #280.
This commit is contained in:
pem@mysql.com
2003-04-17 13:20:02 +02:00
parent 64da2fff67
commit 7b5df9edec
27 changed files with 79 additions and 7 deletions

View File

@@ -37,6 +37,9 @@ create procedure proc1()
create function func1() returns int
return 42|
drop procedure proc1|
drop function func1|
# Does not exist
--error 1261
alter procedure foo|
@@ -105,7 +108,22 @@ begin
return x;
end|
drop procedure proc1|
drop function func1|
# Wrong number of arguments
create procedure p(x int)
insert into test.t1 values (x)|
create function f(x int) returns int
return x+42|
--error 1274
call p()|
--error 1274
call p(1, 2)|
--error 1274
select f()|
--error 1274
select f(1, 2)|
drop procedure p|
drop function f|
delimiter ;|