summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-11-06 00:41:25 +0200
committerunknown <bell@sanja.is.com.ua>2002-11-06 00:41:25 +0200
commit2eb2786dcc1cbd217b5df9992571afa75b83f083 (patch)
tree33f30a46c49c881c4b5bea255e3892a784ad4778 /sql/handler.cc
parent54ebb4175bc98d1ba2ca0e72abd83150d722ce8a (diff)
downloadmariadb-git-2eb2786dcc1cbd217b5df9992571afa75b83f083.tar.gz
fixed bdb transaction with query cache bug
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 7aba6817eca..f07e90d2eb9 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -294,7 +294,8 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans)
error=1;
}
else
- transaction_commited= 1;
+ if (!(thd->options & OPTION_BEGIN))
+ transaction_commited= 1;
trans->bdb_tid=0;
}
#endif