1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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

@ -1515,7 +1515,8 @@ bool select_dumpvar::send_data(List<Item> &items)
{
if ((yy=var_li++))
{
thd->spcont->set_item_eval(yy->get_offset(), item, zz->type);
if (thd->spcont->set_item_eval(yy->get_offset(), item, zz->type))
DBUG_RETURN(1);
}
}
else