commit 1a5d381cb040967c3306efcc5994efb9437d5cd5
parent da2886f95a6e2d6577d942530bc4975bc936db6c
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Wed, 11 Mar 2026 11:50:47 +0100
fix #11227 regression
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/exchangedb/exchange_do_deposit.sql b/src/exchangedb/exchange_do_deposit.sql
@@ -54,6 +54,7 @@ DECLARE
bdsi INT8; -- batch_deposits serial id
i INT4;
my_record RECORD;
+ my_diff RECORD;
ini_amount_with_fee taler_amount;
ini_deposit_fee taler_amount;
ini_coin_pub BYTEA;
@@ -250,10 +251,11 @@ LOOP
INTO my_total_without_fee
FROM amount_add (my_total_without_fee,
ini_amount_with_fee);
- SELECT diff
- INTO my_total_without_fee
+ SELECT *
+ INTO my_diff
FROM amount_left_minus_right (my_total_without_fee,
ini_deposit_fee);
+ my_total_without_fee = my_diff.diff;
END IF;
END IF;
END LOOP; -- end FOR all coins