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

parent 62fe3811
......@@ -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