summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-10-17 10:52:06 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-10-17 10:52:06 +0200
commit9294f3663712dbc60da1dc575278b47e9e56c6fa (patch)
tree8de62995b149a2136500c2bcdea017dfdfdfc1fc /src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c
parentc190a1cdfce1cdecfcc25fd851f53e853377d5a9 (diff)
downloadexchange-9294f3663712dbc60da1dc575278b47e9e56c6fa.tar.gz
exchange-9294f3663712dbc60da1dc575278b47e9e56c6fa.tar.bz2
exchange-9294f3663712dbc60da1dc575278b47e9e56c6fa.zip
-remove dead index, add comment on live index
Diffstat (limited to 'src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c')
-rw-r--r--src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c b/src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c
index daedb3f8b..1c7bc15a0 100644
--- a/src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c
+++ b/src/exchangedb/pg_select_reserves_in_above_serial_id_by_account.c
@@ -24,6 +24,8 @@
#include "taler_pq_lib.h"
#include "pg_select_reserves_in_above_serial_id_by_account.h"
#include "pg_helper.h"
+
+
/**
* Closure for #reserves_in_serial_helper_cb().
*/
@@ -152,8 +154,9 @@ TEH_PG_select_reserves_in_above_serial_id_by_account (
" USING (reserve_pub)"
" JOIN wire_targets"
" ON (wire_source_h_payto = wire_target_h_payto)"
- " WHERE reserve_in_serial_id>=$1 AND exchange_account_section=$2"
- " ORDER BY reserve_in_serial_id;");
+ " WHERE reserve_in_serial_id>=$1"
+ " AND exchange_account_section=$2"
+ " ORDER BY reserve_in_serial_id ASC;");
qs = GNUNET_PQ_eval_prepared_multi_select (pg->conn,
"audit_reserves_in_get_transactions_incr_by_account",
params,