aboutsummaryrefslogtreecommitdiff
path: root/src/pq/pq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pq/pq.c')
-rw-r--r--src/pq/pq.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pq/pq.c b/src/pq/pq.c
index b260aa1db..130ff355f 100644
--- a/src/pq/pq.c
+++ b/src/pq/pq.c
@@ -95,6 +95,11 @@ GNUNET_PQ_exec_prepared (struct GNUNET_PQ_Context *db,
95 param_lengths, 95 param_lengths,
96 param_formats, 96 param_formats,
97 1); 97 1);
98 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
99 "pq",
100 "Execution of prepared SQL statement `%s' finished (%d)\n",
101 name,
102 PGRES_COMMAND_OK == PQresultStatus (res));
98 if ( (PGRES_COMMAND_OK != PQresultStatus (res)) && 103 if ( (PGRES_COMMAND_OK != PQresultStatus (res)) &&
99 (CONNECTION_OK != (status = PQstatus (db->conn))) ) 104 (CONNECTION_OK != (status = PQstatus (db->conn))) )
100 { 105 {
@@ -163,6 +168,9 @@ GNUNET_PQ_extract_result (PGresult *result,
163 spec->fname); 168 spec->fname);
164 goto cleanup; 169 goto cleanup;
165 case GNUNET_SYSERR: 170 case GNUNET_SYSERR:
171 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
172 "Failed to extract field `%s'\n",
173 spec->fname);
166 GNUNET_break (0); 174 GNUNET_break (0);
167 goto cleanup; 175 goto cleanup;
168 } 176 }