aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/pg_insert_historic_denom_revenue.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-30 12:01:51 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-30 12:02:04 +0200
commitb9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd (patch)
tree99b71aede2ffce5efce4593f77ff10876fae9fa6 /src/auditordb/pg_insert_historic_denom_revenue.c
parenteb8f0be35dc2e058df213e183a935772d172e6c3 (diff)
downloadexchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.tar.xz
migrating auditordb to use amount tuples
Diffstat (limited to 'src/auditordb/pg_insert_historic_denom_revenue.c')
-rw-r--r--src/auditordb/pg_insert_historic_denom_revenue.c14
1 files changed, 7 insertions, 7 deletions
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);