auditordb postgres plugin: fix field name

This commit is contained in:
tg(x) 2016-11-04 20:28:27 +01:00
parent 2db2f65aaf
commit 5b8438d7e7

View File

@ -2640,13 +2640,13 @@ postgres_select_historic_reserve_revenue (void *cls,
} }
for (int i = 0; i < nrows; i++) for (int i = 0; i < nrows; i++)
{ {
struct GNUNET_TIME_Absolute start_time; struct GNUNET_TIME_Absolute start_date;
struct GNUNET_TIME_Absolute end_time; struct GNUNET_TIME_Absolute end_date;
struct TALER_Amount reserve_profits; struct TALER_Amount reserve_profits;
struct GNUNET_PQ_ResultSpec rs[] = { struct GNUNET_PQ_ResultSpec rs[] = {
GNUNET_PQ_result_spec_auto_from_type ("start_time", &start_time), GNUNET_PQ_result_spec_auto_from_type ("start_date", &start_date),
GNUNET_PQ_result_spec_auto_from_type ("end_time", &end_time), GNUNET_PQ_result_spec_auto_from_type ("end_date", &end_date),
TALER_PQ_result_spec_amount ("reserve_profits", &reserve_profits), TALER_PQ_result_spec_amount ("reserve_profits", &reserve_profits),
@ -2660,8 +2660,8 @@ postgres_select_historic_reserve_revenue (void *cls,
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
ret = cb (cb_cls, ret = cb (cb_cls,
start_time, start_date,
end_time, end_date,
&reserve_profits); &reserve_profits);
switch (ret) switch (ret)
{ {