Commit 6193ca6e authored by unknown's avatar unknown

merge

parent f0a3ea67
...@@ -942,8 +942,7 @@ int runReadWithoutGetValue(NDBT_Context* ctx, NDBT_Step* step){ ...@@ -942,8 +942,7 @@ int runReadWithoutGetValue(NDBT_Context* ctx, NDBT_Step* step){
return NDBT_FAILED; return NDBT_FAILED;
} }
NdbResultSet *rs; if ((pOp->readTuples((NdbOperation::LockMode)lm)) != 0){
if ((rs = pOp->readTuples((NdbOperation::LockMode)lm)) == 0){
pNdb->closeTransaction(pCon); pNdb->closeTransaction(pCon);
ERR(pOp->getNdbError()); ERR(pOp->getNdbError());
return NDBT_FAILED; return NDBT_FAILED;
...@@ -962,7 +961,7 @@ int runReadWithoutGetValue(NDBT_Context* ctx, NDBT_Step* step){ ...@@ -962,7 +961,7 @@ int runReadWithoutGetValue(NDBT_Context* ctx, NDBT_Step* step){
} }
int res; int res;
while((res = rs->nextResult()) == 0); while((res = pOp->nextResult()) == 0);
pNdb->closeTransaction(pCon); pNdb->closeTransaction(pCon);
if(res != 1) if(res != 1)
......
...@@ -61,7 +61,7 @@ int main(int argc, const char** argv){ ...@@ -61,7 +61,7 @@ int main(int argc, const char** argv){
{ {
return NDBT_ProgramExit(NDBT_FAILED); return NDBT_ProgramExit(NDBT_FAILED);
} }
Ndb MyNdb( db ? db : "TEST_DB" ); Ndb MyNdb( &con, db ? db : "TEST_DB" );
if(MyNdb.init() != 0){ if(MyNdb.init() != 0){
ERR(MyNdb.getNdbError()); ERR(MyNdb.getNdbError());
......
...@@ -63,7 +63,7 @@ int main(int argc, const char** argv){ ...@@ -63,7 +63,7 @@ int main(int argc, const char** argv){
{ {
return NDBT_ProgramExit(NDBT_FAILED); return NDBT_ProgramExit(NDBT_FAILED);
} }
Ndb MyNdb( db ? db : "TEST_DB" ); Ndb MyNdb( &con, db ? db : "TEST_DB" );
if(MyNdb.init() != 0){ if(MyNdb.init() != 0){
ERR(MyNdb.getNdbError()); ERR(MyNdb.getNdbError());
......
...@@ -67,7 +67,7 @@ int main(int argc, const char** argv){ ...@@ -67,7 +67,7 @@ int main(int argc, const char** argv){
{ {
return NDBT_ProgramExit(NDBT_FAILED); return NDBT_ProgramExit(NDBT_FAILED);
} }
Ndb MyNdb( db ? db : "TEST_DB" ); Ndb MyNdb( &con, db ? db : "TEST_DB" );
if(MyNdb.init() != 0){ if(MyNdb.init() != 0){
ERR(MyNdb.getNdbError()); ERR(MyNdb.getNdbError());
......
...@@ -64,7 +64,7 @@ int main(int argc, const char** argv){ ...@@ -64,7 +64,7 @@ int main(int argc, const char** argv){
{ {
return NDBT_ProgramExit(NDBT_FAILED); return NDBT_ProgramExit(NDBT_FAILED);
} }
Ndb MyNdb( db ? db : "TEST_DB" ); Ndb MyNdb( &con, db ? db : "TEST_DB" );
if(MyNdb.init() != 0){ if(MyNdb.init() != 0){
ERR(MyNdb.getNdbError()); ERR(MyNdb.getNdbError());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment