Bug #40923 | NdbOperation not returning error code when using wrong API NdbInterpretedCode | ||
---|---|---|---|
Submitted: | 21 Nov 2008 13:13 | Modified: | 18 Jan 2009 15:18 |
Reporter: | Jonathan Miller | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | telco-6.2+ | OS: | Any |
Assigned to: | Jon Stephens | CPU Architecture: | Any |
[21 Nov 2008 13:13]
Jonathan Miller
[21 Nov 2008 14:58]
Frazer Clement
Can you check whether the NdbOperation object has an Error (rather than the NdbTransaction object)? e.g. m_check = m_pMyScanOp->interpret_exit_last_row(); if( m_check == -1 ) { APIERROR(m_pMyTrans->getNdbError()); <---- Error -1 pMyNdb->closeTransaction(m_pMyTrans); exit(-1); } becomes m_check = m_pMyScanOp->interpret_exit_last_row(); if( m_check == -1 ) { APIERROR(m_pMyScanOp->getNdbError()); <---- Error -1 pMyNdb->closeTransaction(m_pMyTrans); exit(-1); }
[21 Nov 2008 18:20]
Jonathan Miller
Was a bug in app code and not in API.
[22 Nov 2008 12:20]
Jon Stephens
Changing to Docs bug, assigning to myself as a reminder to review and possibly update relevant documentation. (Jeb sent me an email asking me to look this one over, seems like I should.)
[18 Jan 2009 15:18]
Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.