summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_update_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_update_predicted_result.c
parenteb8f0be35dc2e058df213e183a935772d172e6c3 (diff)
downloadexchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.tar.gz
exchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.tar.bz2
exchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.zip
migrating auditordb to use amount tuples
Diffstat (limited to 'src/auditordb/pg_update_predicted_result.c')
-rw-r--r--src/auditordb/pg_update_predicted_result.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/auditordb/pg_update_predicted_result.c b/src/auditordb/pg_update_predicted_result.c
index 5c9618adf..207b27930 100644
--- a/src/auditordb/pg_update_predicted_result.c
+++ b/src/auditordb/pg_update_predicted_result.c
@@ -35,8 +35,10 @@ TAH_PG_update_predicted_result (
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
- 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_auto_from_type (master_pub),
GNUNET_PQ_query_param_end
};
@@ -44,11 +46,9 @@ TAH_PG_update_predicted_result (
PREPARE (pg,
"auditor_predicted_result_update",
"UPDATE auditor_predicted_result SET"
- " balance_val=$1"
- ",balance_frac=$2"
- ",drained_val=$3"
- ",drained_frac=$4"
- " WHERE master_pub=$5;");
+ " balance=$1"
+ ",drained=$2"
+ " WHERE master_pub=$3;");
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"auditor_predicted_result_update",
params);