From 963477e0640284a54b6e13c947940a0fd1e47bf3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 14 Jun 2022 15:57:48 +0200 Subject: -fix comments --- src/exchangedb/plugin_exchangedb_postgres.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/exchangedb/plugin_exchangedb_postgres.c') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index f63790ca..20b3ba36 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -1524,7 +1524,8 @@ prepare_statements (struct PostgresClosure *pg) GNUNET_PQ_make_prepare ( "audit_get_purse_deposits_by_purse", "SELECT" - " pd.amount_with_fee_val" + " pd.purse_deposit_serial_id" + ",pd.amount_with_fee_val" ",pd.amount_with_fee_frac" ",pd.coin_pub" ",denom.denom_pub" @@ -10722,6 +10723,7 @@ purse_refund_coin_helper_cb (void *cls, struct TALER_Amount amount_with_fee; struct TALER_CoinSpendPublicKeyP coin_pub; struct TALER_DenominationPublicKey denom_pub; + uint64_t rowid; struct GNUNET_PQ_ResultSpec rs[] = { TALER_PQ_result_spec_denom_pub ("denom_pub", &denom_pub), @@ -10729,6 +10731,8 @@ purse_refund_coin_helper_cb (void *cls, &amount_with_fee), GNUNET_PQ_result_spec_auto_from_type ("coin_pub", &coin_pub), + GNUNET_PQ_result_spec_uint64 ("purse_deposit_serial_id", + &rowid), GNUNET_PQ_result_spec_end }; enum GNUNET_GenericReturnValue ret; @@ -10743,6 +10747,7 @@ purse_refund_coin_helper_cb (void *cls, return; } ret = dsc->cb (dsc->cb_cls, + rowid, &amount_with_fee, &coin_pub, &denom_pub); -- cgit v1.2.3