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

Fixed BUG#2653: Undeclared variables not detected in stored procedures.

We now get an run-time error instead of a crash (although a slightly misleading
error message, but it's an improvement).
This commit is contained in:
pem@mysql.comhem.se
2004-07-21 14:53:09 +02:00
parent 108be666d9
commit c0ae841258
6 changed files with 92 additions and 12 deletions

View File

@@ -553,6 +553,28 @@ drop table t3|
--error 1049
create procedure nodb.bug3339() begin end|
#
# BUG#2653
#
create procedure bug2653_1(a int, out b int)
set b = aa|
create procedure bug2653_2(a int, out b int)
begin
if aa < 0 then
set b = - a;
else
set b = a;
end if;
end|
--error 1054
call bug2653_1(1, @b)|
--error 1054
call bug2653_2(2, @b)|
drop procedure bug2653_1|
drop procedure bug2653_2|
drop table t1|