summaryrefslogtreecommitdiff
path: root/src/mintdb/plugin_mintdb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-12 21:29:17 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-12 21:29:17 +0200
commit5c01da52b1309607311b0b2e608e5de3a77b7ffe (patch)
tree3708026c7d4671eaf1feb05592f0b3564c068010 /src/mintdb/plugin_mintdb_postgres.c
parentb1e0dd8b7ec7af8e478d67ef49c60bd2d0774864 (diff)
downloadexchange-5c01da52b1309607311b0b2e608e5de3a77b7ffe.tar.gz
exchange-5c01da52b1309607311b0b2e608e5de3a77b7ffe.tar.bz2
exchange-5c01da52b1309607311b0b2e608e5de3a77b7ffe.zip
introduce pq functions form abs time in NBO
Diffstat (limited to 'src/mintdb/plugin_mintdb_postgres.c')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index 00c515e1f..c222d1c37 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -1057,10 +1057,10 @@ postgres_insert_denomination_info (void *cls,
TALER_PQ_query_param_rsa_public_key (denom_pub->rsa_public_key),
TALER_PQ_query_param_auto_from_type (&issue->master),
TALER_PQ_query_param_auto_from_type (&issue->signature),
- TALER_PQ_query_param_auto_from_type (&issue->start.abs_value_us__),
- TALER_PQ_query_param_auto_from_type (&issue->expire_withdraw.abs_value_us__),
- TALER_PQ_query_param_auto_from_type (&issue->expire_spend.abs_value_us__),
- TALER_PQ_query_param_auto_from_type (&issue->expire_legal.abs_value_us__),
+ TALER_PQ_query_param_absolute_time_nbo (&issue->start),
+ TALER_PQ_query_param_absolute_time_nbo (&issue->expire_withdraw),
+ TALER_PQ_query_param_absolute_time_nbo (&issue->expire_spend),
+ TALER_PQ_query_param_absolute_time_nbo (&issue->expire_legal),
TALER_PQ_query_param_amount_nbo (&issue->value),
TALER_PQ_query_param_amount_nbo (&issue->fee_withdraw),
TALER_PQ_query_param_amount_nbo (&issue->fee_deposit),
@@ -1147,14 +1147,14 @@ postgres_get_denomination_info (void *cls,
&issue->master),
TALER_PQ_result_spec_auto_from_type ("master_sig",
&issue->signature),
- TALER_PQ_result_spec_auto_from_type ("valid_from",
- &issue->start.abs_value_us__),
- TALER_PQ_result_spec_auto_from_type ("expire_withdraw",
- &issue->expire_withdraw.abs_value_us__),
- TALER_PQ_result_spec_auto_from_type ("expire_spend",
- &issue->expire_spend.abs_value_us__),
- TALER_PQ_result_spec_auto_from_type ("expire_legal",
- &issue->expire_legal.abs_value_us__),
+ TALER_PQ_result_spec_absolute_time_nbo ("valid_from",
+ &issue->start),
+ TALER_PQ_result_spec_absolute_time_nbo ("expire_withdraw",
+ &issue->expire_withdraw),
+ TALER_PQ_result_spec_absolute_time_nbo ("expire_spend",
+ &issue->expire_spend),
+ TALER_PQ_result_spec_absolute_time_nbo ("expire_legal",
+ &issue->expire_legal),
TALER_PQ_result_spec_amount_nbo ("coin",
&issue->value),
TALER_PQ_result_spec_amount_nbo ("fee_withdraw",