summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_update_purse_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb/pg_update_purse_info.c')
-rw-r--r--src/auditordb/pg_update_purse_info.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/auditordb/pg_update_purse_info.c b/src/auditordb/pg_update_purse_info.c
index 87c507b45..66dfd490e 100644
--- a/src/auditordb/pg_update_purse_info.c
+++ b/src/auditordb/pg_update_purse_info.c
@@ -30,25 +30,22 @@ enum GNUNET_DB_QueryStatus
TAH_PG_update_purse_info (
void *cls,
const struct TALER_PurseContractPublicKeyP *purse_pub,
- const struct TALER_MasterPublicKeyP *master_pub,
const struct TALER_Amount *balance)
{
struct PostgresClosure *pg = cls;
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 (pg->conn,
+ balance),
GNUNET_PQ_query_param_end
};
PREPARE (pg,
"auditor_purses_update",
- "UPDATE auditor_purses SET "
- " balance_val=$3"
- ",balance_frac=$4"
- " WHERE purse_pub=$1"
- " AND master_pub=$2;");
+ "UPDATE auditor_purses"
+ " SET balance=$2"
+ " WHERE purse_pub=$1");
return GNUNET_PQ_eval_prepared_non_select (pg->conn,
"auditor_purses_update",
params);