List:Commits« Previous MessageNext Message »
From:tomas Date:July 13 2007 3:30pm
Subject:bk commit into 5.1 tree (tomas:1.2560) BUG#29762
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tomas. When tomas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-07-13 15:30:36+02:00, tomas@stripped +1 -0
  Bug #29762 The ndbapi-examples don't work as expected due to api changes in MySQL
5.1.16]

  storage/ndb/ndbapi-examples/ndbapi_simple/ndbapi_simple.cpp@stripped, 2007-07-13
15:30:33+02:00, tomas@stripped +7 -5
    Bug #29762 The ndbapi-examples don't work as expected due to api changes in MySQL
5.1.16]

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	tomas
# Host:	whalegate.ndb.mysql.com
# Root:	/home/tomas/mysql-5.1-new-ndb

--- 1.3/storage/ndb/ndbapi-examples/ndbapi_simple/ndbapi_simple.cpp	2006-12-23 20:33:30
+01:00
+++ 1.4/storage/ndb/ndbapi-examples/ndbapi_simple/ndbapi_simple.cpp	2007-07-13 15:30:33
+02:00
@@ -281,12 +281,14 @@
     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
bk commit into 5.1 tree (tomas:1.2560) BUG#29762tomas13 Jul