fix rowcount check for transaction test
authorAleš Křenek <ljocha@ics.muni.cz>
Wed, 1 Aug 2007 16:09:40 +0000 (16:09 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Wed, 1 Aug 2007 16:09:40 +0000 (16:09 +0000)
org.glite.lb.server/src/lbs_db.c

index 3be4522..5f1efa0 100644 (file)
@@ -83,7 +83,7 @@ static int transaction_test(edg_wll_Context ctx) {
 
        ctx->use_transactions = 0;
 
-       if (edg_wll_ExecStmt(ctx, "show create table events", &sh) != 0 ||
+       if (edg_wll_ExecStmt(ctx, "show create table events", &sh) <= 0 ||
            (retval = edg_wll_FetchRow(sh, res)) < 0 ) {
                edg_wll_FreeStmt(&sh);
                return edg_wll_Error(ctx, NULL, NULL);