diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-02 21:46:25 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-02 21:46:25 +0200 |
commit | a686301fb021bfd86d95672cbaba0375b293b5c5 (patch) | |
tree | 919a66a9dda174867ef33ba6645ad683d37f6928 /src/pq | |
parent | 82068a5eb95bbe39e244f155567f39953c2b5fb9 (diff) | |
download | gnunet-a686301fb021bfd86d95672cbaba0375b293b5c5.tar.gz gnunet-a686301fb021bfd86d95672cbaba0375b293b5c5.zip |
improve namestore postgres plugin to use libgnunetpq more
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq_eval.c | 7 |
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, | |||
57 | const char *statement_name, | 57 | const char *statement_name, |
58 | PGresult *result) | 58 | PGresult *result) |
59 | { | 59 | { |
60 | if (PGRES_COMMAND_OK != | 60 | ExecStatusType est; |
61 | PQresultStatus (result)) | 61 | |
62 | est = PQresultStatus (result); | ||
63 | if ( (PGRES_COMMAND_OK != est) && | ||
64 | (PGRES_TUPLES_OK != est) ) | ||
62 | { | 65 | { |
63 | const char *sqlstate; | 66 | const char *sqlstate; |
64 | 67 | ||