From b001046a1e47fa48aacdb383ce58584b56eb2db7 Mon Sep 17 00:00:00 2001
From: Joseph <Joseph.xu@efrei.net>
Date: Tue, 3 Jan 2023 05:10:27 -0500
Subject: some modifications for batch update

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

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

diff --git a/src/exchangedb/exchange_do_batch_reserves_update.sql b/src/exchangedb/exchange_do_batch_reserves_update.sql
index af5d358fb..05dd1876d 100644
--- a/src/exchangedb/exchange_do_batch_reserves_update.sql
+++ b/src/exchangedb/exchange_do_batch_reserves_update.sql
@@ -79,7 +79,7 @@ BEGIN
     PERFORM pg_notify(in_notify, NULL);
   ELSE
     CLOSE curs;
-    IF ! out_reserve_found
+    IF NOT in_reserve_found
     THEN
       ROLLBACK;
     END IF;
-- 
cgit v1.2.3

