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:
@ -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;
|
||||
|
Reference in New Issue
Block a user