summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-31 18:59:19 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-31 18:59:19 +0200
commit07449ce578347a79fcff9fda0164b7b7782cec80 (patch)
treecad0cd771065d97d313397d0c769182384343447 /src/exchangedb/plugin_exchangedb_postgres.c
parentbc7c9e686ed24acc8d690f32d184c516858c77a1 (diff)
parentc6d1fb3ceb75e7cd5c3ccd320690bc3334240bde (diff)
downloadexchange-07449ce578347a79fcff9fda0164b7b7782cec80.tar.gz
exchange-07449ce578347a79fcff9fda0164b7b7782cec80.tar.bz2
exchange-07449ce578347a79fcff9fda0164b7b7782cec80.zip
Merge branch 'master' of git+ssh://taler.net/var/git/exchange
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);