summaryrefslogtreecommitdiff
path: root/src/backenddb/plugin_merchantdb_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index ae4fc359..c58a9476 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -2874,10 +2874,10 @@ RETRY:
for (unsigned int i = 0; i<td->details_length; i++)
{
const struct TALER_TrackTransferDetails *d = &td->details[i];
- uint32_t i32 = (uint32_t) i;
+ uint64_t i64 = (uint64_t) i;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&credit_serial),
- GNUNET_PQ_query_param_uint32 (&i32),
+ GNUNET_PQ_query_param_uint64 (&i64),
TALER_PQ_query_param_amount (&d->coin_value),
TALER_PQ_query_param_amount (&d->coin_fee), /* deposit fee */
GNUNET_PQ_query_param_auto_from_type (&d->coin_pub),
@@ -3381,10 +3381,10 @@ lookup_transfer_details_cb (void *cls,
for (unsigned int i = 0; i<num_results; i++)
{
- uint32_t current_offset;
+ uint64_t current_offset;
struct TALER_TrackTransferDetails ttd;
struct GNUNET_PQ_ResultSpec rs[] = {
- GNUNET_PQ_result_spec_uint32 ("offset_in_exchange_list",
+ GNUNET_PQ_result_spec_uint64 ("offset_in_exchange_list",
&current_offset),
GNUNET_PQ_result_spec_auto_from_type ("h_contract_terms",
&ttd.h_contract_terms),
@@ -3882,12 +3882,12 @@ lookup_reserves_cb (void *cls,
struct TALER_Amount exchange_initial_balance;
struct TALER_Amount pickup_amount;
struct TALER_Amount committed_amount;
- uint8_t active;
+ uint8_t active = 0;
struct GNUNET_PQ_ResultSpec rs[] = {
GNUNET_PQ_result_spec_auto_from_type ("reserve_pub",
&reserve_pub),
- GNUNET_PQ_result_spec_absolute_time ("creation_time",
- &creation_time),
+ /*GNUNET_PQ_result_spec_absolute_time ("creation_time",
+ &creation_time),*/
GNUNET_PQ_result_spec_absolute_time ("expiration",
&expiration_time),
TALER_PQ_RESULT_SPEC_AMOUNT ("merchant_initial_balance",
@@ -3898,8 +3898,8 @@ lookup_reserves_cb (void *cls,
&committed_amount),
TALER_PQ_RESULT_SPEC_AMOUNT ("tips_picked_up",
&pickup_amount),
- GNUNET_PQ_result_spec_auto_from_type ("active",
- &active),
+ /*GNUNET_PQ_result_spec_auto_from_type ("active",
+ &active),*/
GNUNET_PQ_result_spec_end
};
@@ -4079,7 +4079,7 @@ postgres_lookup_reserve (void *cls,
struct TALER_Amount exchange_initial_balance;
struct TALER_Amount pickup_amount;
struct TALER_Amount committed_amount;
- uint8_t active;
+ /*uint8_t active;*/
struct GNUNET_PQ_ResultSpec rs[] = {
GNUNET_PQ_result_spec_absolute_time ("creation_time",
&creation_time),
@@ -4093,8 +4093,8 @@ postgres_lookup_reserve (void *cls,
&pickup_amount),
TALER_PQ_RESULT_SPEC_AMOUNT ("tips_committed",
&committed_amount),
- GNUNET_PQ_result_spec_auto_from_type ("active",
- &active),
+ /*GNUNET_PQ_result_spec_auto_from_type ("active",
+ &active),*/
GNUNET_PQ_result_spec_end
};
enum GNUNET_DB_QueryStatus qs;