donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit ea173d45369720d38fe0391e4a84f0b655fed1d3
parent cb75aba77326901fbd06365887ff53b2f37a3e66
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 13 Jun 2026 21:12:27 +0200

also remove GNUNET_PQ_connect()

Diffstat:
Msrc/pq/test_pq.c | 24++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/pq/test_pq.c b/src/pq/test_pq.c @@ -206,18 +206,34 @@ main (int argc, }; struct GNUNET_PQ_Context *conn; int ret; + struct GNUNET_CONFIGURATION_Handle *cfg; (void) argc; (void) argv; GNUNET_log_setup ("test-pq", "WARNING", NULL); - conn = GNUNET_PQ_connect ("postgres:///donaucheck", - NULL, - es, - NULL); + cfg = GNUNET_CONFIGURATION_create ( + TALER_EXCHANGE_project_data ()); + GNUNET_CONFIGURATION_set_value_string (cfg, + "test-pq", + "CONFIG", + "postgres:///talercheck"); + /* just to squash warning */ + GNUNET_CONFIGURATION_set_value_string (cfg, + "test-pq", + "SQL_DIR", + "none"); + conn = GNUNET_PQ_init (cfg, + "test-pq", + NULL, + NULL); + GNUNET_CONFIGURATION_destroy (cfg); if (NULL == conn) return 77; + GNUNET_assert (GNUNET_OK == + GNUNET_PQ_exec_statements (conn, + es)); if (GNUNET_OK != postgres_prepare (conn)) {