From a686301fb021bfd86d95672cbaba0375b293b5c5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 2 Jun 2017 21:46:25 +0200 Subject: improve namestore postgres plugin to use libgnunetpq more --- src/pq/pq_eval.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/pq') diff --git a/src/pq/pq_eval.c b/src/pq/pq_eval.c index 39a7a2c98..d6c10e2c5 100644 --- a/src/pq/pq_eval.c +++ b/src/pq/pq_eval.c @@ -57,8 +57,11 @@ GNUNET_PQ_eval_result (PGconn *connection, const char *statement_name, PGresult *result) { - if (PGRES_COMMAND_OK != - PQresultStatus (result)) + ExecStatusType est; + + est = PQresultStatus (result); + if ( (PGRES_COMMAND_OK != est) && + (PGRES_TUPLES_OK != est) ) { const char *sqlstate; -- cgit v1.2.3