summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-02-18 12:54:27 +0100
committerChristian Grothoff <christian@grothoff.org>2024-02-18 12:54:27 +0100
commitbc8fc7096d81804d66b62aec7195a3eb39003af6 (patch)
tree082b52393685bfb98dd108aea2ff3b9fe3b669ce /src
parent2d9d970bca7df7a45b60877baa608956e57c00e1 (diff)
downloadexchange-bc8fc7096d81804d66b62aec7195a3eb39003af6.tar.gz
exchange-bc8fc7096d81804d66b62aec7195a3eb39003af6.tar.bz2
exchange-bc8fc7096d81804d66b62aec7195a3eb39003af6.zip
-explain
Diffstat (limited to 'src')
-rw-r--r--src/exchangedb/pg_lookup_kyc_process_by_account.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exchangedb/pg_lookup_kyc_process_by_account.c b/src/exchangedb/pg_lookup_kyc_process_by_account.c
index e8d9eaa94..b077661c5 100644
--- a/src/exchangedb/pg_lookup_kyc_process_by_account.c
+++ b/src/exchangedb/pg_lookup_kyc_process_by_account.c
@@ -71,6 +71,8 @@ TEH_PG_lookup_kyc_process_by_account (
" WHERE h_payto=$1"
" AND provider_section=$2"
" AND NOT finished"
+ /* Note: there *should* only be one unfinished
+ match, so this is just to be safe(r): */
" ORDER BY expiration_time DESC"
" LIMIT 1;");
return GNUNET_PQ_eval_prepared_singleton_select (