commit f33402662663b201cb911050643902d303e23165
parent 5f6a8a59398bbc546cf0fbb40cd3ff993fcd903c
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 5 Aug 2024 00:38:00 +0200
note on current troubles
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/exchangedb/pg_lookup_kyc_requirement_by_row.c b/src/exchangedb/pg_lookup_kyc_requirement_by_row.c
@@ -67,6 +67,12 @@ TEH_PG_lookup_kyc_requirement_by_row (
memset (account_pub,
0,
sizeof (*account_pub));
+ // FIXME: likely better done as a stored procedure,
+ // this may get even more complex: *if* there is
+ // a more recent lm for the same account/access_token,
+ // we probably want to join with THAT lo and not
+ // the possibly dated lo for the given row.
+ // Or: don't join at all with lo and simplify?
PREPARE (pg,
"lookup_kyc_requirement_by_row",
"SELECT "