diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-07-30 12:01:51 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-07-30 12:02:04 +0200 |
commit | b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd (patch) | |
tree | 99b71aede2ffce5efce4593f77ff10876fae9fa6 /src/auditordb/pg_update_purse_summary.c | |
parent | eb8f0be35dc2e058df213e183a935772d172e6c3 (diff) | |
download | exchange-b9ecc4113db28da3dce9c5d9c15ac2d0317dc2fd.tar.xz |
migrating auditordb to use amount tuples
Diffstat (limited to 'src/auditordb/pg_update_purse_summary.c')
-rw-r--r-- | src/auditordb/pg_update_purse_summary.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/auditordb/pg_update_purse_summary.c b/src/auditordb/pg_update_purse_summary.c index 45afe2c8c..3415b9555 100644 --- a/src/auditordb/pg_update_purse_summary.c +++ b/src/auditordb/pg_update_purse_summary.c @@ -35,7 +35,8 @@ TAH_PG_update_purse_summary ( struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (master_pub), - TALER_PQ_query_param_amount (&sum->balance), + TALER_PQ_query_param_amount_tuple (pg->conn, + &sum->balance), GNUNET_PQ_query_param_uint64 (&sum->open_purses), GNUNET_PQ_query_param_end }; @@ -43,9 +44,8 @@ TAH_PG_update_purse_summary ( PREPARE (pg, "auditor_purse_summary_update", "UPDATE auditor_purse_summary SET" - " balance_val=$2" - ",balance_frac=$3" - ",open_purses=$4" + " balance=$2" + ",open_purses=$3" " WHERE master_pub=$1;"); return GNUNET_PQ_eval_prepared_non_select (pg->conn, "auditor_purse_summary_update", |