diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-07-30 12:01:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-07-30 12:02:04 +0200 |
commit | b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd (patch) | |
tree | 99b71aede2ffce5efce4593f77ff10876fae9fa6 /src/auditordb/pg_insert_deposit_confirmation.c | |
parent | eb8f0be35dc2e058df213e183a935772d172e6c3 (diff) | |
download | exchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.tar.gz exchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.tar.bz2 exchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.zip |
migrating auditordb to use amount tuples
Diffstat (limited to 'src/auditordb/pg_insert_deposit_confirmation.c')
-rw-r--r-- | src/auditordb/pg_insert_deposit_confirmation.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/auditordb/pg_insert_deposit_confirmation.c b/src/auditordb/pg_insert_deposit_confirmation.c index 675f8ed0d..31d4ea982 100644 --- a/src/auditordb/pg_insert_deposit_confirmation.c +++ b/src/auditordb/pg_insert_deposit_confirmation.c @@ -40,7 +40,8 @@ TAH_PG_insert_deposit_confirmation ( GNUNET_PQ_query_param_timestamp (&dc->exchange_timestamp), GNUNET_PQ_query_param_timestamp (&dc->wire_deadline), GNUNET_PQ_query_param_timestamp (&dc->refund_deadline), - TALER_PQ_query_param_amount (&dc->amount_without_fee), + TALER_PQ_query_param_amount_tuple (pg->conn, + &dc->amount_without_fee), GNUNET_PQ_query_param_auto_from_type (&dc->coin_pub), GNUNET_PQ_query_param_auto_from_type (&dc->merchant), GNUNET_PQ_query_param_auto_from_type (&dc->exchange_sig), @@ -59,14 +60,13 @@ TAH_PG_insert_deposit_confirmation ( ",exchange_timestamp" ",wire_deadline" ",refund_deadline" - ",amount_without_fee_val" - ",amount_without_fee_frac" + ",amount_without_fee" ",coin_pub" ",merchant_pub" ",exchange_sig" ",exchange_pub" ",master_sig" /* master_sig could be normalized... */ - ") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14);"); + ") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13);"); return GNUNET_PQ_eval_prepared_non_select (pg->conn, "auditor_deposit_confirmation_insert", params); |