aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/pg_insert_predicted_result.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_predicted_result.c
parenteb8f0be35dc2e058df213e183a935772d172e6c3 (diff)
downloadexchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.tar.xz
migrating auditordb to use amount tuples
Diffstat (limited to 'src/auditordb/pg_insert_predicted_result.c')
-rw-r--r--src/auditordb/pg_insert_predicted_result.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/auditordb/pg_insert_predicted_result.c b/src/auditordb/pg_insert_predicted_result.c
index 4e8e54201..070c7b76e 100644
--- a/src/auditordb/pg_insert_predicted_result.c
+++ b/src/auditordb/pg_insert_predicted_result.c
@@ -36,8 +36,10 @@ TAH_PG_insert_predicted_result (
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (master_pub),
- TALER_PQ_query_param_amount (balance),
- TALER_PQ_query_param_amount (drained),
+ TALER_PQ_query_param_amount_tuple (pg->conn,
+ balance),
+ TALER_PQ_query_param_amount_tuple (pg->conn,
+ drained),
GNUNET_PQ_query_param_end
};
@@ -45,11 +47,9 @@ TAH_PG_insert_predicted_result (
"auditor_predicted_result_insert",
"INSERT INTO auditor_predicted_result"
"(master_pub"
- ",balance_val"
- ",balance_frac"
- ",drained_val"
- ",drained_frac"
- ") VALUES ($1,$2,$3,$4,$5);");
+ ",balance"
+ ",drained"
+ ") VALUES ($1,$2,$3);");
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"auditor_predicted_result_insert",
params);