diff options
author | unknown <joreland@mysql.com> | 2004-10-13 15:53:26 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2004-10-13 15:53:26 +0200 |
commit | 1a9712600088cf2fa2521e2b99112c40b3e68d8f (patch) | |
tree | c21e4725d3b02a6f98b1d7aeae0cc21b12955409 /ndb | |
parent | 68e39ecaadfa9f9c0cf632b0666d4bdcfcb9d36e (diff) | |
download | mariadb-git-1a9712600088cf2fa2521e2b99112c40b3e68d8f.tar.gz |
Set error code, when return NULL in hupp
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/ndbapi/Ndb.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ndb/src/ndbapi/Ndb.cpp b/ndb/src/ndbapi/Ndb.cpp index 08d1e793db8..04632665aff 100644 --- a/ndb/src/ndbapi/Ndb.cpp +++ b/ndb/src/ndbapi/Ndb.cpp @@ -371,6 +371,7 @@ Ndb::hupp(NdbConnection* pBuddyTrans) // We could not get a connection to the desired node // release the connection and return NULL closeTransaction(pCon); + theError.code = 4006; DBUG_RETURN(NULL); } pCon->setTransactionId(pBuddyTrans->getTransactionId()); |