diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-13 19:07:25 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-13 19:07:25 +0200 |
commit | 09310cc66ebbdf083c4b4fa86a368b3ea52c0c16 (patch) | |
tree | b87132659d9d27e5e7d84e4f76b4d836b6689f9d /src/exchangedb/bench_db.c | |
parent | 4fc77b9dbfee88dff2d366d7dbb2d91797f8b9a0 (diff) | |
download | exchange-09310cc66ebbdf083c4b4fa86a368b3ea52c0c16.tar.xz |
-implement reserve closure in test
Diffstat (limited to 'src/exchangedb/bench_db.c')
-rw-r--r-- | src/exchangedb/bench_db.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/exchangedb/bench_db.c b/src/exchangedb/bench_db.c index a8dbfbfa5..a85834d13 100644 --- a/src/exchangedb/bench_db.c +++ b/src/exchangedb/bench_db.c @@ -51,32 +51,28 @@ prepare (struct GNUNET_PQ_Context *conn) "(hc" ",expiration_date" ") VALUES " - "($1, $2);", - 2), + "($1, $2);"), /* Used in #postgres_iterate_denomination_info() */ GNUNET_PQ_make_prepare ( "bm_select", "SELECT" " expiration_date" " FROM benchmap" - " WHERE hc=$1;", - 1), + " WHERE hc=$1;"), GNUNET_PQ_make_prepare ( "bhm_insert", "INSERT INTO benchhmap " "(hc" ",expiration_date" ") VALUES " - "($1, $2);", - 2), + "($1, $2);"), /* Used in #postgres_iterate_denomination_info() */ GNUNET_PQ_make_prepare ( "bhm_select", "SELECT" " expiration_date" " FROM benchhmap" - " WHERE hc=$1;", - 1), + " WHERE hc=$1;"), GNUNET_PQ_make_prepare ( "bem_insert", "INSERT INTO benchemap " @@ -84,16 +80,14 @@ prepare (struct GNUNET_PQ_Context *conn) ",ihc" ",expiration_date" ") VALUES " - "($1, $2, $3);", - 3), + "($1, $2, $3);"), /* Used in #postgres_iterate_denomination_info() */ GNUNET_PQ_make_prepare ( "bem_select", "SELECT" " expiration_date" " FROM benchemap" - " WHERE ihc=$1 AND hc=$2;", - 2), + " WHERE ihc=$1 AND hc=$2;"), GNUNET_PQ_PREPARED_STATEMENT_END }; enum GNUNET_GenericReturnValue ret; |