summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_update_purse_info.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_purse_info.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_purse_info.c')
-rw-r--r--src/auditordb/pg_update_purse_info.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/auditordb/pg_update_purse_info.c b/src/auditordb/pg_update_purse_info.c
index 87c507b45..a9c9e5d3f 100644
--- a/src/auditordb/pg_update_purse_info.c
+++ b/src/auditordb/pg_update_purse_info.c
@@ -38,15 +38,15 @@ TAH_PG_update_purse_info (
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (purse_pub),
GNUNET_PQ_query_param_auto_from_type (master_pub),
- TALER_PQ_query_param_amount (balance),
+ TALER_PQ_query_param_amount_tuple (pg->conn,
+ balance),
GNUNET_PQ_query_param_end
};
PREPARE (pg,
"auditor_purses_update",
"UPDATE auditor_purses SET "
- " balance_val=$3"
- ",balance_frac=$4"
+ " balance=$3"
" WHERE purse_pub=$1"
" AND master_pub=$2;");
return GNUNET_PQ_eval_prepared_non_select (pg->conn,