Commit 02ddb3b5 authored by unknown's avatar unknown

Update error code on "parent" connection if a new NdbScanOperation could not be returned


ndb/src/ndbapi/NdbScanOperation.cpp:
  Set error code on "parent" NdbConnection
parent 2b1e7075
......@@ -91,8 +91,10 @@ NdbScanOperation::init(NdbTableImpl* tab, NdbConnection* myConnection)
m_transConnection = myConnection;
//NdbConnection* aScanConnection = theNdb->startTransaction(myConnection);
NdbConnection* aScanConnection = theNdb->hupp(myConnection);
if (!aScanConnection)
if (!aScanConnection){
setErrorCodeAbort(theNdb->getNdbError().code);
return -1;
}
aScanConnection->theFirstOpInList = this;
aScanConnection->theLastOpInList = this;
NdbCursorOperation::cursInit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment