summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_insert_historic_denomination_revenue.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb/pg_insert_historic_denomination_revenue.c')
-rw-r--r--src/auditordb/pg_insert_historic_denomination_revenue.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/auditordb/pg_insert_historic_denomination_revenue.c b/src/auditordb/pg_insert_historic_denomination_revenue.c
index c7779c9b3..83f34e0f2 100644
--- a/src/auditordb/pg_insert_historic_denomination_revenue.c
+++ b/src/auditordb/pg_insert_historic_denomination_revenue.c
@@ -1,6 +1,3 @@
-
-
-
/*
This file is part of TALER
Copyright (C) 2024 Taler Systems SA
@@ -32,11 +29,10 @@ TAH_PG_insert_historic_denomination_revenue (
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_auto_from_type(&dc->denom_pub_hash),
-GNUNET_PQ_query_param_int64(&dc->revenue_timestamp),
-TALER_PQ_query_param_amount(pg->conn, &dc->revenue_balance),
-TALER_PQ_query_param_amount(pg->conn, &dc->loss_balance),
-GNUNET_PQ_query_param_bool(dc->suppressed),
+ GNUNET_PQ_query_param_auto_from_type (&dc->denom_pub_hash),
+ GNUNET_PQ_query_param_int64 (&dc->revenue_timestamp),
+ TALER_PQ_query_param_amount (pg->conn, &dc->revenue_balance),
+ TALER_PQ_query_param_amount (pg->conn, &dc->loss_balance),
GNUNET_PQ_query_param_end
@@ -46,15 +42,12 @@ GNUNET_PQ_query_param_bool(dc->suppressed),
"auditor_historic_denomination_revenue_insert",
"INSERT INTO auditor_historic_denomination_revenue "
"( denom_pub_hash,"
-" revenue_timestamp,"
-" revenue_balance,"
-" loss_balance,"
-" suppressed"
-") VALUES ($1,$2,$3,$4,$5);"
+ " revenue_timestamp,"
+ " revenue_balance,"
+ " loss_balance"
+ ") VALUES ($1,$2,$3,$4);"
);
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"auditor_historic_denomination_revenue_insert",
params);
}
-
- \ No newline at end of file