diff options
author | unknown <jonas@perch.ndb.mysql.com> | 2006-10-18 16:48:44 +0200 |
---|---|---|
committer | unknown <jonas@perch.ndb.mysql.com> | 2006-10-18 16:48:44 +0200 |
commit | 1028185ac1ba72942db7fd9abca939c9b6bec44c (patch) | |
tree | 8bd6f882df739bbf3671130a7fb42305469f83c5 /ndb | |
parent | 855c4e063d8c81ad3136f58df7a75bd37eca22dc (diff) | |
download | mariadb-git-1028185ac1ba72942db7fd9abca939c9b6bec44c.tar.gz |
ndb - bug#23200
Make sure postExecute is not run for blobs if AO_IgnoreError
ndb/src/ndbapi/NdbConnection.cpp:
If AO_IgnoreError, error codes arent always set on individual operations, making postExecute impossible
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/ndbapi/NdbConnection.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ndb/src/ndbapi/NdbConnection.cpp b/ndb/src/ndbapi/NdbConnection.cpp index 9cd7d6ed42e..e061740c9f6 100644 --- a/ndb/src/ndbapi/NdbConnection.cpp +++ b/ndb/src/ndbapi/NdbConnection.cpp @@ -373,8 +373,15 @@ NdbConnection::execute(ExecType aTypeOfExec, ret = -1; if(savedError.code==0) savedError= theError; + + /** + * If AO_IgnoreError, error codes arent always set on individual + * operations, making postExecute impossible + */ + if (abortOption == AO_IgnoreError) + DBUG_RETURN(-1); } - + #ifdef ndb_api_crash_on_complex_blob_abort assert(theFirstOpInList == NULL && theLastOpInList == NULL); #else |