summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@tik.mysql.fi>2001-09-06 23:57:32 +0300
committerunknown <monty@tik.mysql.fi>2001-09-06 23:57:32 +0300
commit44e61cdad7da3d5c98002b56dcfa3d026b205bcf (patch)
treee9cc497510dfb664a30e2714aaceae4638a512a0 /sql
parent07a887b3836904c19a7dcc74ac1b73e82dbed7ec (diff)
downloadmariadb-git-44e61cdad7da3d5c98002b56dcfa3d026b205bcf.tar.gz
Fixed a problem using LOCK TABLES and BDB tables
Docs/manual.texi: Added description of C thread functions sql-bench/test-create.sh: Faster --fast option
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_base.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 16495ab03b0..624377b688e 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -413,7 +413,10 @@ void close_thread_tables(THD *thd, bool locked)
DBUG_ENTER("close_thread_tables");
if (thd->locked_tables)
+ {
+ ha_commit_stmt(thd); // If select statement
DBUG_VOID_RETURN; // LOCK TABLES in use
+ }
TABLE *table,*next;
bool found_old_table=0;