1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed BUG#2460: Crash wih Stored Procedure and UNION.

This commit is contained in:
pem@mysql.comhem.se
2004-05-28 19:43:06 +02:00
parent a4729a9052
commit 27abb69250
3 changed files with 94 additions and 1 deletions

View File

@ -457,7 +457,9 @@ int st_select_lex_unit::exec()
else
{
JOIN_TAB *tab,*end;
for (tab=join->join_tab,end=tab+join->tables ; tab != end ; tab++)
for (tab=join->join_tab, end=tab+join->tables ;
tab && tab != end ;
tab++)
{
delete tab->select;
delete tab->quick;