summaryrefslogtreecommitdiff
path: root/src/auditordb/plugin_auditordb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-07-24 11:32:52 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-07-24 11:32:52 +0200
commit977ddd7bb97f9cec780407f27ccb2dbf8d1cf722 (patch)
treef2a192aedb47996805842c2dfed79e9fc3170e72 /src/auditordb/plugin_auditordb_postgres.c
parent9eaee4c80353b4e1317c0df2418f24209c2b238d (diff)
downloadexchange-977ddd7bb97f9cec780407f27ccb2dbf8d1cf722.tar.gz
exchange-977ddd7bb97f9cec780407f27ccb2dbf8d1cf722.tar.bz2
exchange-977ddd7bb97f9cec780407f27ccb2dbf8d1cf722.zip
-adapt to latest libgnunetpq
Diffstat (limited to 'src/auditordb/plugin_auditordb_postgres.c')
-rw-r--r--src/auditordb/plugin_auditordb_postgres.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/auditordb/plugin_auditordb_postgres.c b/src/auditordb/plugin_auditordb_postgres.c
index 971893204..8b12474d3 100644
--- a/src/auditordb/plugin_auditordb_postgres.c
+++ b/src/auditordb/plugin_auditordb_postgres.c
@@ -97,20 +97,23 @@ struct PostgresClosure
*/
static enum GNUNET_GenericReturnValue
postgres_drop_tables (void *cls,
- int drop_exchangelist)
+ bool drop_exchangelist)
{
struct PostgresClosure *pc = cls;
struct GNUNET_PQ_Context *conn;
+ enum GNUNET_GenericReturnValue ret;
conn = GNUNET_PQ_connect_with_cfg (pc->cfg,
"auditordb-postgres",
- (drop_exchangelist) ? "drop" : "restart",
+ NULL,
NULL,
NULL);
if (NULL == conn)
return GNUNET_SYSERR;
+ ret = GNUNET_PQ_exec_sql (conn,
+ (drop_exchangelist) ? "drop" : "restart");
GNUNET_PQ_disconnect (conn);
- return GNUNET_OK;
+ return ret;
}