diff options
Diffstat (limited to 'src/exchangedb/pg_reserves_get.c')
-rw-r--r-- | src/exchangedb/pg_reserves_get.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exchangedb/pg_reserves_get.c b/src/exchangedb/pg_reserves_get.c index d081ca00f..cae4764a5 100644 --- a/src/exchangedb/pg_reserves_get.c +++ b/src/exchangedb/pg_reserves_get.c @@ -35,7 +35,8 @@ TEH_PG_reserves_get (void *cls, GNUNET_PQ_query_param_end }; struct GNUNET_PQ_ResultSpec rs[] = { - TALER_PQ_RESULT_SPEC_AMOUNT ("current_balance", + TALER_PQ_result_spec_amount ("current_balance", + pg->currency, &reserve->balance), GNUNET_PQ_result_spec_timestamp ("expiration_date", &reserve->expiry), @@ -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" |