summaryrefslogtreecommitdiff
path: root/src/pq/pq_eval.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-02 21:46:25 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-02 21:46:25 +0200
commita686301fb021bfd86d95672cbaba0375b293b5c5 (patch)
tree919a66a9dda174867ef33ba6645ad683d37f6928 /src/pq/pq_eval.c
parent82068a5eb95bbe39e244f155567f39953c2b5fb9 (diff)
improve namestore postgres plugin to use libgnunetpq more
Diffstat (limited to 'src/pq/pq_eval.c')
-rw-r--r--src/pq/pq_eval.c7
1 files changed, 5 insertions, 2 deletions
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;