summaryrefslogtreecommitdiff
path: root/src/auditordb/pg_get_purse_not_closed_inconsistencies.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb/pg_get_purse_not_closed_inconsistencies.c')
-rw-r--r--src/auditordb/pg_get_purse_not_closed_inconsistencies.c43
1 files changed, 23 insertions, 20 deletions
diff --git a/src/auditordb/pg_get_purse_not_closed_inconsistencies.c b/src/auditordb/pg_get_purse_not_closed_inconsistencies.c
index 7489f7ccb..c5e891ee0 100644
--- a/src/auditordb/pg_get_purse_not_closed_inconsistencies.c
+++ b/src/auditordb/pg_get_purse_not_closed_inconsistencies.c
@@ -108,12 +108,12 @@ TAH_PG_get_purse_not_closed_inconsistencies (
{
struct PostgresClosure *pg = cls;
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_uint64 (&offset),
- GNUNET_PQ_query_param_bool (return_suppressed),
- GNUNET_PQ_query_param_int64 (&limit),
- GNUNET_PQ_query_param_end
- };
+ struct GNUNET_PQ_QueryParam params[] = {
+ GNUNET_PQ_query_param_uint64 (&offset),
+ GNUNET_PQ_query_param_bool (return_suppressed),
+ GNUNET_PQ_query_param_int64 (&limit),
+ GNUNET_PQ_query_param_end
+ };
struct PurseNotClosedInconsistenciesContext dcc = {
.cb = cb,
.cb_cls = cb_cls,
@@ -134,21 +134,24 @@ TAH_PG_get_purse_not_closed_inconsistencies (
" ORDER BY row_id DESC"
" LIMIT $3"
);
- PREPARE (pg,
- "auditor_purse_not_closed_inconsistencies_get_asc",
- "SELECT"
- " row_id"
- ",purse_pub"
- ",amount"
- ",expiration_date"
- " FROM auditor_purse_not_closed_inconsistencies"
- " WHERE (row_id > $1)"
- " AND ($2 OR suppressed is false)"
- " ORDER BY row_id ASC"
- " LIMIT $3"
- );
+ PREPARE (pg,
+ "auditor_purse_not_closed_inconsistencies_get_asc",
+ "SELECT"
+ " row_id"
+ ",purse_pub"
+ ",amount"
+ ",expiration_date"
+ " FROM auditor_purse_not_closed_inconsistencies"
+ " WHERE (row_id > $1)"
+ " AND ($2 OR suppressed is false)"
+ " ORDER BY row_id ASC"
+ " LIMIT $3"
+ );
qs = GNUNET_PQ_eval_prepared_multi_select (pg->conn,
- (limit > 0) ? "auditor_purse_not_closed_inconsistencies_get_asc" : "auditor_purse_not_closed_inconsistencies_get_desc",
+ (limit > 0) ?
+ "auditor_purse_not_closed_inconsistencies_get_asc"
+ :
+ "auditor_purse_not_closed_inconsistencies_get_desc",
params,
&
purse_not_closed_inconsistencies_cb,