summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-31 10:39:11 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-31 10:39:11 +0200
commit0cef479e00a89a6649c747f91aba5208affd30e0 (patch)
tree42604fabefa4dca697c5b5d77ab0538c080c6499 /src/exchangedb/plugin_exchangedb_postgres.c
parenteb1fdc105cf2ea0afe3922e06b614622294d017f (diff)
downloadexchange-0cef479e00a89a6649c747f91aba5208affd30e0.tar.gz
exchange-0cef479e00a89a6649c747f91aba5208affd30e0.tar.bz2
exchange-0cef479e00a89a6649c747f91aba5208affd30e0.zip
extend test to cover GC
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 72f85e7bb..5fbaa26b3 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -4298,6 +4298,12 @@ postgres_gc (void *cls)
conn = connect_to_postgres (pc);
if (NULL == conn)
return GNUNET_SYSERR;
+ if (GNUNET_OK !=
+ postgres_prepare (conn))
+ {
+ PQfinish (conn);
+ return GNUNET_SYSERR;
+ }
result = GNUNET_PQ_exec_prepared (conn,
"gc_prewire",
params_none);