summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <gni/root@dev3-221.dev.cn.tlan>2006-12-14 18:32:02 +0800
committerunknown <gni/root@dev3-221.dev.cn.tlan>2006-12-14 18:32:02 +0800
commitd431d2c59504eabe44716a63db966a23e68f6257 (patch)
tree55c50bb181a6455d2b3615695bb86d5cc3be2385 /ndb
parent8e0f8a62e46b5db76d5253e85983ba79afbd4591 (diff)
parentfa5b6774d04b6faae1801ef4634e58d71ae57e2e (diff)
downloadmariadb-git-d431d2c59504eabe44716a63db966a23e68f6257.tar.gz
Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.0/mysql-5.0-ndb-bj
into dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.0/bug21033 ndb/src/ndbapi/Ndb.cpp: Auto merged
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/ndbapi/Ndb.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/ndb/src/ndbapi/Ndb.cpp b/ndb/src/ndbapi/Ndb.cpp
index c701fbf77e0..a3b75ea42a3 100644
--- a/ndb/src/ndbapi/Ndb.cpp
+++ b/ndb/src/ndbapi/Ndb.cpp
@@ -983,6 +983,8 @@ Ndb::opTupleIdOnNdb(Ndb_local_table_info* info, Uint64 & opValue, Uint32 op)
Uint64 tValue;
NdbRecAttr* tRecAttrResult;
+ NdbError savedError;
+
CHECK_STATUS_MACRO_ZERO;
BaseString currentDb(getDatabaseName());
@@ -1077,7 +1079,12 @@ Ndb::opTupleIdOnNdb(Ndb_local_table_info* info, Uint64 & opValue, Uint32 op)
error_handler:
theError.code = tConnection->theError.code;
+
+ savedError = theError;
+
this->closeTransaction(tConnection);
+ theError = savedError;
+
error_return:
// Restore current name space
setDatabaseName(currentDb.c_str());