diff options
Diffstat (limited to 'src/auditordb/pg_insert_historic_reserve_revenue.c')
-rw-r--r-- | src/auditordb/pg_insert_historic_reserve_revenue.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/auditordb/pg_insert_historic_reserve_revenue.c b/src/auditordb/pg_insert_historic_reserve_revenue.c index 8218aab70..953fba34a 100644 --- a/src/auditordb/pg_insert_historic_reserve_revenue.c +++ b/src/auditordb/pg_insert_historic_reserve_revenue.c @@ -28,29 +28,26 @@ enum GNUNET_DB_QueryStatus TAH_PG_insert_historic_reserve_revenue ( void *cls, - const struct TALER_MasterPublicKeyP *master_pub, struct GNUNET_TIME_Timestamp start_time, struct GNUNET_TIME_Timestamp end_time, const struct TALER_Amount *reserve_profits) { struct PostgresClosure *pg = cls; struct GNUNET_PQ_QueryParam params[] = { - GNUNET_PQ_query_param_auto_from_type (master_pub), GNUNET_PQ_query_param_timestamp (&start_time), GNUNET_PQ_query_param_timestamp (&end_time), - TALER_PQ_query_param_amount (reserve_profits), + TALER_PQ_query_param_amount (pg->conn, + reserve_profits), GNUNET_PQ_query_param_end }; PREPARE (pg, "auditor_historic_reserve_summary_insert", "INSERT INTO auditor_historic_reserve_summary" - "(master_pub" - ",start_date" + "(start_date" ",end_date" - ",reserve_profits_val" - ",reserve_profits_frac" - ") VALUES ($1,$2,$3,$4,$5);"); + ",reserve_profits" + ") VALUES ($1,$2,$3);"); return GNUNET_PQ_eval_prepared_non_select (pg->conn, "auditor_historic_reserve_summary_insert", params); |