summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 70810265926..26cf30234d2 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -714,6 +714,7 @@ sp_instr_stmt::exec_stmt(THD *thd, LEX *lex)
{
LEX *olex; // The other lex
Item *freelist;
+ SELECT_LEX *sl;
int res;
olex= thd->lex; // Save the other lex
@@ -726,7 +727,7 @@ sp_instr_stmt::exec_stmt(THD *thd, LEX *lex)
// Copy WHERE clause pointers to avoid damaging by optimisation
// Also clear ref_pointer_arrays.
- for (SELECT_LEX *sl= lex->all_selects_list ;
+ for (sl= lex->all_selects_list ;
sl ;
sl= sl->next_select_in_list())
{
@@ -772,7 +773,7 @@ sp_instr_stmt::exec_stmt(THD *thd, LEX *lex)
close_thread_tables(thd); /* Free tables */
}
- for (SELECT_LEX *sl= lex->all_selects_list ;
+ for (sl= lex->all_selects_list ;
sl ;
sl= sl->next_select_in_list())
{