mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
merge
This commit is contained in:
parent
cf4cbe079e
commit
a81aa47d42
5 changed files with 6 additions and 7 deletions
|
@ -942,8 +942,7 @@ int runReadWithoutGetValue(NDBT_Context* ctx, NDBT_Step* step){
|
|||
return NDBT_FAILED;
|
||||
}
|
||||
|
||||
NdbResultSet *rs;
|
||||
if ((rs = pOp->readTuples((NdbOperation::LockMode)lm)) == 0){
|
||||
if ((pOp->readTuples((NdbOperation::LockMode)lm)) != 0){
|
||||
pNdb->closeTransaction(pCon);
|
||||
ERR(pOp->getNdbError());
|
||||
return NDBT_FAILED;
|
||||
|
@ -962,7 +961,7 @@ int runReadWithoutGetValue(NDBT_Context* ctx, NDBT_Step* step){
|
|||
}
|
||||
|
||||
int res;
|
||||
while((res = rs->nextResult()) == 0);
|
||||
while((res = pOp->nextResult()) == 0);
|
||||
pNdb->closeTransaction(pCon);
|
||||
|
||||
if(res != 1)
|
||||
|
|
|
@ -61,7 +61,7 @@ int main(int argc, const char** argv){
|
|||
{
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
Ndb MyNdb( db ? db : "TEST_DB" );
|
||||
Ndb MyNdb( &con, db ? db : "TEST_DB" );
|
||||
|
||||
if(MyNdb.init() != 0){
|
||||
ERR(MyNdb.getNdbError());
|
||||
|
|
|
@ -63,7 +63,7 @@ int main(int argc, const char** argv){
|
|||
{
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
Ndb MyNdb( db ? db : "TEST_DB" );
|
||||
Ndb MyNdb( &con, db ? db : "TEST_DB" );
|
||||
|
||||
if(MyNdb.init() != 0){
|
||||
ERR(MyNdb.getNdbError());
|
||||
|
|
|
@ -67,7 +67,7 @@ int main(int argc, const char** argv){
|
|||
{
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
Ndb MyNdb( db ? db : "TEST_DB" );
|
||||
Ndb MyNdb( &con, db ? db : "TEST_DB" );
|
||||
|
||||
if(MyNdb.init() != 0){
|
||||
ERR(MyNdb.getNdbError());
|
||||
|
|
|
@ -64,7 +64,7 @@ int main(int argc, const char** argv){
|
|||
{
|
||||
return NDBT_ProgramExit(NDBT_FAILED);
|
||||
}
|
||||
Ndb MyNdb( db ? db : "TEST_DB" );
|
||||
Ndb MyNdb( &con, db ? db : "TEST_DB" );
|
||||
|
||||
if(MyNdb.init() != 0){
|
||||
ERR(MyNdb.getNdbError());
|
||||
|
|
Loading…
Reference in a new issue