mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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,12 +281,14 @@ static void do_read(Ndb &myNdb)
|
||||
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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user