1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

cleanup: get rid of (Item_splocal*)item downcast

This commit is contained in:
Sergei Golubchik
2014-08-19 21:06:20 +02:00
parent 932100c813
commit 278f7fdd7e
4 changed files with 9 additions and 8 deletions

View File

@@ -985,9 +985,9 @@ subst_spvars(THD *thd, sp_instr *instr, LEX_STRING *query_str)
/* Find all instances of Item_splocal used in this statement */
for (Item *item= instr->free_list; item; item= item->next)
{
if (item->is_splocal())
Item_splocal *item_spl= item->get_item_splocal();
if (item_spl)
{
Item_splocal *item_spl= (Item_splocal*)item;
if (item_spl->pos_in_query)
sp_vars_uses.append(item_spl);
}