diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-07-28 23:29:12 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-07-28 23:29:12 +0200 |
commit | 28d80d3b38531eddfd37b2a8bcff9f209cf522ac (patch) | |
tree | 13fa6119a4cf2ac592bc3bf08ad4176cbe676a24 /src/exchangedb/pg_reserves_get.c | |
parent | 84cb25e977fb9ac15fd7f4363fd8dee429e4b0fd (diff) | |
parent | 6dedca0fa36bd30bbeb26be012ce3ac9d967065a (diff) |
Merge branch 'new-amount' - reserves now has taler_mount
Diffstat (limited to 'src/exchangedb/pg_reserves_get.c')
-rw-r--r-- | src/exchangedb/pg_reserves_get.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exchangedb/pg_reserves_get.c b/src/exchangedb/pg_reserves_get.c index d081ca00f..5b487b860 100644 --- a/src/exchangedb/pg_reserves_get.c +++ b/src/exchangedb/pg_reserves_get.c @@ -35,8 +35,9 @@ TEH_PG_reserves_get (void *cls, GNUNET_PQ_query_param_end }; struct GNUNET_PQ_ResultSpec rs[] = { - TALER_PQ_RESULT_SPEC_AMOUNT ("current_balance", - &reserve->balance), + TALER_PQ_result_spec_amount_tuple ("current_balance", + pg->currency, + &reserve->balance), GNUNET_PQ_result_spec_timestamp ("expiration_date", &reserve->expiry), GNUNET_PQ_result_spec_timestamp ("gc_date", @@ -47,8 +48,7 @@ TEH_PG_reserves_get (void *cls, PREPARE (pg, "reserves_get", "SELECT" - " current_balance_val" - ",current_balance_frac" + " current_balance" ",expiration_date" ",gc_date" " FROM reserves" |