diff options
author | pem@mysql.telia.com <> | 2003-09-17 12:30:05 +0200 |
---|---|---|
committer | pem@mysql.telia.com <> | 2003-09-17 12:30:05 +0200 |
commit | b8e4dc03d809838f6f589ef24089e52ea806da33 (patch) | |
tree | 8868b507d7cf7f2edf0a4bfda660e85d3f82b08a | |
parent | 04f0570fe8a846ade8c4eaa2b87f4432239269bd (diff) | |
download | mariadb-git-b8e4dc03d809838f6f589ef24089e52ea806da33.tar.gz |
Fix bug in sp.cc:db_find_routine() which made tables remain open in some cases.
-rw-r--r-- | sql/sp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 092a3b0989b..729a5f0d641 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -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); } |