A few more bugs revealed in tests.

This commit is contained in:
Jaime Casanova
2010-09-29 06:45:22 -05:00
parent 3b8e8183cc
commit 12916315eb
2 changed files with 38 additions and 38 deletions

View File

@@ -95,15 +95,10 @@ guc_setted(PGconn *conn, const char *parameter, const char *op, const char *valu
PQfinish(conn);
exit(1);
}
if (PQgetisnull(res, 0, 0))
if (PQntuples(res) == 0)
{
PQclear(res);
return false;
}
if (strcmp(PQgetvalue(res, 0, 0), "f") == 0)
{
PQclear(res);
return false;
return false;
}
PQclear(res);