mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
Bug #29762 The ndbapi-examples don't work as expected due to api changes in MySQL 5.1.16]
This commit is contained in:
@@ -281,11 +281,13 @@ static void do_read(Ndb &myNdb)
|
|||||||
if (myRecAttr == NULL) APIERROR(myTransaction->getNdbError());
|
if (myRecAttr == NULL) APIERROR(myTransaction->getNdbError());
|
||||||
|
|
||||||
if(myTransaction->execute( NdbTransaction::Commit ) == -1)
|
if(myTransaction->execute( NdbTransaction::Commit ) == -1)
|
||||||
if (i == 3) {
|
APIERROR(myTransaction->getNdbError());
|
||||||
std::cout << "Detected that deleted tuple doesn't exist!" << std::endl;
|
|
||||||
} else {
|
if (myTransaction->getNdbError().classification == NdbError::NoDataFound)
|
||||||
|
if (i == 3)
|
||||||
|
std::cout << "Detected that deleted tuple doesn't exist!" << std::endl;
|
||||||
|
else
|
||||||
APIERROR(myTransaction->getNdbError());
|
APIERROR(myTransaction->getNdbError());
|
||||||
}
|
|
||||||
|
|
||||||
if (i != 3) {
|
if (i != 3) {
|
||||||
printf(" %2d %2d\n", i, myRecAttr->u_32_value());
|
printf(" %2d %2d\n", i, myRecAttr->u_32_value());
|
||||||
|
Reference in New Issue
Block a user