Commit 3a2107ab authored by unknown's avatar unknown

Merge mysqldev@production.mysql.com:my/mysql-5.0-release

into mysql.com:/home/psergey/mysql-5.0-bug12335-release2
parents 03615e0b a5d78a0c
...@@ -672,8 +672,12 @@ static bool subst_spvars(THD *thd, sp_instr *instr, LEX_STRING *query_str) ...@@ -672,8 +672,12 @@ static bool subst_spvars(THD *thd, sp_instr *instr, LEX_STRING *query_str)
/* Find all instances of item_splocal used in this statement */ /* Find all instances of item_splocal used in this statement */
for (Item *item= instr->free_list; item; item= item->next) for (Item *item= instr->free_list; item; item= item->next)
{ {
if (item->is_splocal() && ((Item_splocal*)item)->pos_in_query) if (item->is_splocal())
sp_vars_uses.append((Item_splocal*)item); {
Item_splocal *item_spl= (Item_splocal*)item;
if (item_spl->pos_in_query)
sp_vars_uses.append(item_spl);
}
} }
if (!sp_vars_uses.elements()) if (!sp_vars_uses.elements())
DBUG_RETURN(0); DBUG_RETURN(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment