summaryrefslogtreecommitdiff
path: root/src/stasis/plugin_anastasis_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-07-24 11:33:36 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-07-24 11:33:36 +0200
commit8fd36a4defb96770ccc7f3f1fca689a0c433f149 (patch)
tree9ec577554f8e3722b37599ccdf1753b6663f194a /src/stasis/plugin_anastasis_postgres.c
parenta2a15adea5dafb138c7c144af35c5ff16bf56a1e (diff)
downloadanastasis-8fd36a4defb96770ccc7f3f1fca689a0c433f149.tar.gz
anastasis-8fd36a4defb96770ccc7f3f1fca689a0c433f149.tar.bz2
anastasis-8fd36a4defb96770ccc7f3f1fca689a0c433f149.zip
-adapt to latest libgnunetpq
Diffstat (limited to 'src/stasis/plugin_anastasis_postgres.c')
-rw-r--r--src/stasis/plugin_anastasis_postgres.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/stasis/plugin_anastasis_postgres.c b/src/stasis/plugin_anastasis_postgres.c
index 3b1136d..7ba6b73 100644
--- a/src/stasis/plugin_anastasis_postgres.c
+++ b/src/stasis/plugin_anastasis_postgres.c
@@ -83,16 +83,19 @@ postgres_drop_tables (void *cls)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_Context *conn;
+ enum GNUNET_GenericReturnValue ret;
conn = GNUNET_PQ_connect_with_cfg (pg->cfg,
"stasis-postgres",
- "drop",
+ NULL,
NULL,
NULL);
if (NULL == conn)
return GNUNET_SYSERR;
+ ret = GNUNET_PQ_exec_sql (conn,
+ "drop");
GNUNET_PQ_disconnect (conn);
- return GNUNET_OK;
+ return ret;
}