summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2006-01-06 08:34:55 -0800
committerunknown <jimw@mysql.com>2006-01-06 08:34:55 -0800
commita436331ad2ce75f5e9dabb5fd564aece6a6ff140 (patch)
tree2051ec4c25b53bd0dfb5b8f24c5b125bbc2c45f9 /sql/handler.cc
parentadb67a684a6c89f021b23bd6ebf43046bad2589a (diff)
parent2232e7b2bdcf5eac76c75b3d0ff6acdfad98a75e (diff)
downloadmariadb-git-a436331ad2ce75f5e9dabb5fd564aece6a6ff140.tar.gz
Merge mysql.com:/home/jimw/my/mysql-5.0-14212
into mysql.com:/home/jimw/my/mysql-5.0-clean sql/ha_ndbcluster.cc: Auto merged sql/handler.cc: Auto merged mysql-test/r/bdb.result: Resolve conflict mysql-test/t/bdb.test: Resolve conflict
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 4b4c446f09b..4e128eb5938 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1926,7 +1926,8 @@ int ha_enable_transaction(THD *thd, bool on)
is an optimization hint that storage engine is free to ignore.
So, let's commit an open transaction (if any) now.
*/
- error= end_trans(thd, COMMIT);
+ if (!(error= ha_commit_stmt(thd)))
+ error= end_trans(thd, COMMIT);
}
DBUG_RETURN(error);
}