From a39cf869226b2ef38054158f3fc23b125a1c0165 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Wed, 1 Aug 2007 16:09:40 +0000 Subject: [PATCH] fix rowcount check for transaction test --- org.glite.lb.server/src/lbs_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/lbs_db.c b/org.glite.lb.server/src/lbs_db.c index 3be4522..5f1efa0 100644 --- a/org.glite.lb.server/src/lbs_db.c +++ b/org.glite.lb.server/src/lbs_db.c @@ -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); -- 1.8.2.3