summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-07-24 13:30:33 +0200
committerChristian Grothoff <grothoff@gnunet.org>2022-07-24 13:30:33 +0200
commit40858f0952adb1a476010d509cd2cf62e33077a6 (patch)
tree2e08869f82d5655b8c221e7794c2fdf247babc88 /src/exchangedb/plugin_exchangedb_postgres.c
parent977ddd7bb97f9cec780407f27ccb2dbf8d1cf722 (diff)
downloadexchange-40858f0952adb1a476010d509cd2cf62e33077a6.tar.gz
exchange-40858f0952adb1a476010d509cd2cf62e33077a6.tar.bz2
exchange-40858f0952adb1a476010d509cd2cf62e33077a6.zip
-unversion stored procedures, always load latest ones
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index abcd221bd..90e4af1f0 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -240,6 +240,7 @@ postgres_create_tables (void *cls)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_Context *conn;
+ enum GNUNET_GenericReturnValue ret;
conn = GNUNET_PQ_connect_with_cfg (pg->cfg,
"exchangedb-postgres",
@@ -248,8 +249,10 @@ postgres_create_tables (void *cls)
NULL);
if (NULL == conn)
return GNUNET_SYSERR;
+ ret = GNUNET_PQ_exec_sql (conn,
+ "procedures");
GNUNET_PQ_disconnect (conn);
- return GNUNET_OK;
+ return ret;
}