summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_get_reserve_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb/pg_get_reserve_info.c')
-rw-r--r--src/auditordb/pg_get_reserve_info.c29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/auditordb/pg_get_reserve_info.c b/src/auditordb/pg_get_reserve_info.c
index 6beb0c8de..f16c6d995 100644
--- a/src/auditordb/pg_get_reserve_info.c
+++ b/src/auditordb/pg_get_reserve_info.c
@@ -29,7 +29,6 @@
enum GNUNET_DB_QueryStatus
TAH_PG_get_reserve_info (void *cls,
const struct TALER_ReservePublicKeyP *reserve_pub,
- const struct TALER_MasterPublicKeyP *master_pub,
uint64_t *rowid,
struct TALER_AUDITORDB_ReserveFeeBalance *rfb,
struct GNUNET_TIME_Timestamp *expiration_date,
@@ -38,7 +37,6 @@ TAH_PG_get_reserve_info (void *cls,
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (reserve_pub),
- GNUNET_PQ_query_param_auto_from_type (master_pub),
GNUNET_PQ_query_param_end
};
struct GNUNET_PQ_ResultSpec rs[] = {
@@ -69,29 +67,22 @@ TAH_PG_get_reserve_info (void *cls,
*sender_account = NULL;
PREPARE (pg,
- "auditor_reserves_select",
+ "auditor_get_reserve_info",
"SELECT"
- " reserve_balance_val"
- ",reserve_balance_frac"
- ",reserve_loss_val"
- ",reserve_loss_frac"
- ",withdraw_fee_balance_val"
- ",withdraw_fee_balance_frac"
- ",close_fee_balance_val"
- ",close_fee_balance_frac"
- ",purse_fee_balance_val"
- ",purse_fee_balance_frac"
- ",open_fee_balance_val"
- ",open_fee_balance_frac"
- ",history_fee_balance_val"
- ",history_fee_balance_frac"
+ " reserve_balance"
+ ",reserve_loss"
+ ",withdraw_fee_balance"
+ ",close_fee_balance"
+ ",purse_fee_balance"
+ ",open_fee_balance"
+ ",history_fee_balance"
",expiration_date"
",auditor_reserves_rowid"
",origin_account"
" FROM auditor_reserves"
- " WHERE reserve_pub=$1 AND master_pub=$2;");
+ " WHERE reserve_pub=$1;");
return GNUNET_PQ_eval_prepared_singleton_select (pg->conn,
- "auditor_reserves_select",
+ "auditor_get_reserve_info",
params,
rs);
}