From b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 30 Jul 2023 12:01:51 +0200 Subject: migrating auditordb to use amount tuples --- src/auditordb/pg_insert_historic_denom_revenue.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/auditordb/pg_insert_historic_denom_revenue.c') diff --git a/src/auditordb/pg_insert_historic_denom_revenue.c b/src/auditordb/pg_insert_historic_denom_revenue.c index d44d37340..730904419 100644 --- a/src/auditordb/pg_insert_historic_denom_revenue.c +++ b/src/auditordb/pg_insert_historic_denom_revenue.c @@ -40,8 +40,10 @@ TAH_PG_insert_historic_denom_revenue ( GNUNET_PQ_query_param_auto_from_type (master_pub), GNUNET_PQ_query_param_auto_from_type (denom_pub_hash), GNUNET_PQ_query_param_timestamp (&revenue_timestamp), - TALER_PQ_query_param_amount (revenue_balance), - TALER_PQ_query_param_amount (loss_balance), + TALER_PQ_query_param_amount_tuple (pg->conn, + revenue_balance), + TALER_PQ_query_param_amount_tuple (pg->conn, + loss_balance), GNUNET_PQ_query_param_end }; @@ -51,11 +53,9 @@ TAH_PG_insert_historic_denom_revenue ( "(master_pub" ",denom_pub_hash" ",revenue_timestamp" - ",revenue_balance_val" - ",revenue_balance_frac" - ",loss_balance_val" - ",loss_balance_frac" - ") VALUES ($1,$2,$3,$4,$5,$6,$7);"); + ",revenue_balance" + ",loss_balance" + ") VALUES ($1,$2,$3,$4,$5);"); return GNUNET_PQ_eval_prepared_non_select (pg->conn, "auditor_historic_denomination_revenue_insert", params); -- cgit v1.2.3