diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-22 17:21:14 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-22 17:21:14 +0100 |
commit | 0659100bdff687d87a2cb0242fc26a18d70c710b (patch) | |
tree | 26426a664442a2435248d8ad6f4546170bebfbe6 | |
parent | 5601a81d4dbefcd62ff84b2d6b8802046dc8520a (diff) |
use correct field name
-rw-r--r-- | src/mintdb/plugin_mintdb_postgres.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c index 6da873d55..8da986714 100644 --- a/src/mintdb/plugin_mintdb_postgres.c +++ b/src/mintdb/plugin_mintdb_postgres.c @@ -3620,7 +3620,7 @@ postgres_wire_lookup_deposit_wtid (void *cls, if (0 == nrows) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "lookup_wire_transfer() returned 0 matching rows\n"); + "lookup_deposit_wtid returned 0 matching rows\n"); PQclear (result); /* Check if transaction exists in deposits, so that we just @@ -3649,6 +3649,8 @@ postgres_wire_lookup_deposit_wtid (void *cls, nrows = PQntuples (result); if (0 == nrows) { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "get_deposit_for_wtid returned 0 matching rows\n"); PQclear (result); return GNUNET_NO; } @@ -3660,11 +3662,12 @@ postgres_wire_lookup_deposit_wtid (void *cls, struct TALER_Amount coin_amount; struct TALER_Amount coin_fee; struct TALER_PQ_ResultSpec rs[] = { - TALER_PQ_result_spec_amount ("coin_amount", &coin_amount), + TALER_PQ_result_spec_amount ("amount_with_fee", &coin_amount), TALER_PQ_result_spec_amount ("deposit_fee", &coin_fee), TALER_PQ_result_spec_absolute_time ("wire_deadline", &exec_time), TALER_PQ_result_spec_end }; + if (GNUNET_OK != TALER_PQ_extract_result (result, rs, 0)) { GNUNET_break (0); |