From 0236caf3546acfc25dabe8f8f5763c64a6f55561 Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Sat, 22 Apr 2023 02:30:02 +0200
Subject: -misc fixes

---
 src/exchangedb/exchange_do_reserves_in_insert.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/exchangedb/exchange_do_reserves_in_insert.sql')

diff --git a/src/exchangedb/exchange_do_reserves_in_insert.sql b/src/exchangedb/exchange_do_reserves_in_insert.sql
index 07ce3ec28..d68541f22 100644
--- a/src/exchangedb/exchange_do_reserves_in_insert.sql
+++ b/src/exchangedb/exchange_do_reserves_in_insert.sql
@@ -280,7 +280,7 @@ BEGIN
           END IF;
           CONTINUE loop2_k;
         WHEN 1 THEN
-          IF in0_reserve_pub = i.reserve_pub
+          IF in1_reserve_pub = i.reserve_pub
           THEN
             transaction_duplicate1 = FALSE;
             EXECUTE FORMAT (
-- 
cgit v1.2.3

