Commit c21755eb authored by unknown's avatar unknown

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


sql/sp.cc:
  Fix bug which made tables remain open in some cases.
parent 4deedf62
......@@ -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