Author: jstephens
Date: 2007-07-23 15:07:58 +0200 (Mon, 23 Jul 2007)
New Revision: 7183
Log:
Fixed Docs Bug #29762.
Modified:
trunk/ndbapi/examples.xml
Modified: trunk/ndbapi/examples.xml
===================================================================
--- trunk/ndbapi/examples.xml 2007-07-23 12:49:11 UTC (rev 7182)
+++ trunk/ndbapi/examples.xml 2007-07-23 13:07:58 UTC (rev 7183)
Changed blocks: 2, Lines Added: 8, Lines Deleted: 6; 1257 bytes
@@ -42,7 +42,7 @@
<para>
The source code for this example can be found in
-
<filename>storage/ndb/ndbapi-examples/ndbapi_simple/ndbapi_simple</filename>
+
<filename>storage/ndb/ndbapi-examples/ndbapi_simple/ndbapi_simple.cpp</filename>
in the MySQL 5.1 tree.
</para>
@@ -316,11 +316,13 @@
if (myRecAttr == NULL) APIERROR(myTransaction->getNdbError());
if(myTransaction->execute( NdbTransaction::Commit ) == -1)
- if (i == 3) {
- std::cout << "Detected that deleted tuple doesn't exist!"
<< std::endl;
- } else {
- APIERROR(myTransaction->getNdbError());
- }
+ APIERROR(myTransaction->getNdbError());
+
+ if (myTransaction->getNdbError().classification == NdbError::NoDataFound)
+ if (i == 3)
+ std::cout << "Detected that deleted tuple doesn't exist!"
<< std::endl;
+ else
+ APIERROR(myTransaction->getNdbError());
if (i != 3) {
printf(" %2d %2d\n", i, myRecAttr->u_32_value());
| Thread |
|---|
| • svn commit - mysqldoc@docsrva: r7183 - trunk/ndbapi | jon | 23 Jul |