summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-30 12:14:17 +0200
committerChristian Grothoff <christian@grothoff.org>2020-05-30 12:14:17 +0200
commit3e75373f6b4998a0c97ee6f735c01f21c0f2576f (patch)
tree4ee8741dee8997e776bd40e11ab28e2c33653919
parentfffdd0cb9bdc5b306599fe64857abbfd713e37cf (diff)
downloadmerchant-3e75373f6b4998a0c97ee6f735c01f21c0f2576f.tar.gz
merchant-3e75373f6b4998a0c97ee6f735c01f21c0f2576f.tar.bz2
merchant-3e75373f6b4998a0c97ee6f735c01f21c0f2576f.zip
return creation_time instead of leaving it uninitizlied, mark problematic missing lines
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index c58a9476..756071a9 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -3886,8 +3886,8 @@ lookup_reserves_cb (void *cls,
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",
@@ -3899,7 +3899,7 @@ lookup_reserves_cb (void *cls,
TALER_PQ_RESULT_SPEC_AMOUNT ("tips_picked_up",
&pickup_amount),
/*GNUNET_PQ_result_spec_auto_from_type ("active",
- &active),*/
+ &active), FIXME: 'active'*/
GNUNET_PQ_result_spec_end
};
@@ -4094,7 +4094,7 @@ postgres_lookup_reserve (void *cls,
TALER_PQ_RESULT_SPEC_AMOUNT ("tips_committed",
&committed_amount),
/*GNUNET_PQ_result_spec_auto_from_type ("active",
- &active),*/
+ &active), FIXME: active! */
GNUNET_PQ_result_spec_end
};
enum GNUNET_DB_QueryStatus qs;
@@ -7432,6 +7432,7 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
GNUNET_PQ_make_prepare ("lookup_reserves",
"SELECT"
" reserve_pub"
+ ",creation_time"
",expiration"
",merchant_initial_balance_val"
",merchant_initial_balance_frac"