diff options
author | Nic Eigel <nic@eigel.ch> | 2024-04-26 09:32:25 +0200 |
---|---|---|
committer | Nic Eigel <nic@eigel.ch> | 2024-04-26 09:32:25 +0200 |
commit | 157dd4fa26a039bf2600290b2680b3ba79b15b2a (patch) | |
tree | 39b3f1a2af210fd3a0fdcb9bbd712b5dd7c1f2cc /src/auditordb/pg_get_row_minor_inconsistencies.c | |
parent | ba41bba2a251d00bd2411782890b9ae003243a98 (diff) | |
parent | 72f9b0cb96ee7daaa92f8e6891078fa5e0119ab3 (diff) | |
download | exchange-157dd4fa26a039bf2600290b2680b3ba79b15b2a.tar.gz exchange-157dd4fa26a039bf2600290b2680b3ba79b15b2a.tar.bz2 exchange-157dd4fa26a039bf2600290b2680b3ba79b15b2a.zip |
Merge remote-tracking branch 'origin/dev/nic/real-time-auditor-zwah' into dev/nic/real-time-auditor
# Conflicts:
# src/auditor/taler-auditor-httpd_denominations-without-sigs-get.c
# src/auditor/taler-auditor-httpd_deposit-confirmation-get.c
# src/auditor/taler-auditor-httpd_purse-not-closed-inconsistencies-get.c
# src/auditor/test-auditor.sh
# src/auditordb/pg_insert_reserve_balance_summary_wrong_inconsistency.c
Diffstat (limited to 'src/auditordb/pg_get_row_minor_inconsistencies.c')
-rw-r--r-- | src/auditordb/pg_get_row_minor_inconsistencies.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/src/auditordb/pg_get_row_minor_inconsistencies.c b/src/auditordb/pg_get_row_minor_inconsistencies.c index 002abbda3..8308d5dbb 100644 --- a/src/auditordb/pg_get_row_minor_inconsistencies.c +++ b/src/auditordb/pg_get_row_minor_inconsistencies.c @@ -1,6 +1,3 @@ - - - /* This file is part of TALER Copyright (C) 2024 Taler Systems SA @@ -63,8 +60,8 @@ struct RowMinorInconsistenciesContext */ static void row_minor_inconsistencies_cb (void *cls, - PGresult *result, - unsigned int num_results) + PGresult *result, + unsigned int num_results) { struct RowMinorInconsistenciesContext *dcc = cls; struct PostgresClosure *pg = dcc->pg; @@ -79,9 +76,9 @@ row_minor_inconsistencies_cb (void *cls, GNUNET_PQ_result_spec_uint64 ("row_id", &serial_id), - GNUNET_PQ_result_spec_auto_from_type("row_table", &dc.row_table), -GNUNET_PQ_result_spec_auto_from_type("diagnostic", &dc.diagnostic), -GNUNET_PQ_result_spec_bool("suppressed", &dc.suppressed), + GNUNET_PQ_result_spec_auto_from_type ("row_table", &dc.row_table), + GNUNET_PQ_result_spec_auto_from_type ("diagnostic", &dc.diagnostic), + GNUNET_PQ_result_spec_bool ("suppressed", &dc.suppressed), GNUNET_PQ_result_spec_end @@ -138,9 +135,9 @@ TAH_PG_get_row_minor_inconsistencies ( "auditor_row_minor_inconsistencies_get_desc", "SELECT" " row_id," -" row_table," -" diagnostic," -" suppressed" + " row_table," + " diagnostic," + " suppressed" " FROM auditor_row_minor_inconsistencies" " WHERE (row_id < $1)" " AND ($2 OR suppressed is false)" @@ -151,9 +148,9 @@ TAH_PG_get_row_minor_inconsistencies ( "auditor_row_minor_inconsistencies_get_asc", "SELECT" " row_id," -" row_table," -" diagnostic," -" suppressed" + " row_table," + " diagnostic," + " suppressed" " FROM auditor_row_minor_inconsistencies" " WHERE (row_id > $1)" " AND ($2 OR suppressed is false)" @@ -162,8 +159,10 @@ TAH_PG_get_row_minor_inconsistencies ( ); qs = GNUNET_PQ_eval_prepared_multi_select (pg->conn, (limit > 0) - ? "auditor_row_minor_inconsistencies_get_asc" - : "auditor_row_minor_inconsistencies_get_desc", + ? + "auditor_row_minor_inconsistencies_get_asc" + : + "auditor_row_minor_inconsistencies_get_desc", params, &row_minor_inconsistencies_cb, &dcc); @@ -173,6 +172,3 @@ TAH_PG_get_row_minor_inconsistencies ( GNUNET_break (GNUNET_DB_STATUS_HARD_ERROR != qs); return qs; } - - -
\ No newline at end of file |