Commit b8e4dc03 authored by pem@mysql.telia.com's avatar pem@mysql.telia.com

Fix bug in sp.cc:db_find_routine() which made tables remain open in some cases.

parent 04f0570f
......@@ -134,7 +134,7 @@ db_find_routine(THD *thd, int type, char *name, uint namelen, sp_head **sphp)
if (opened)
{
close_thread_tables(thd, 0, 1);
table= NULL;
opened= FALSE;
}
{
......@@ -167,7 +167,7 @@ db_find_routine(THD *thd, int type, char *name, uint namelen, sp_head **sphp)
}
done:
if (table && opened)
if (opened)
close_thread_tables(thd);
DBUG_RETURN(ret);
}
......
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