diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-06-27 09:46:31 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-06-27 09:46:31 +0200 |
commit | f8536e8c14860d121e7b88feb9843756f144a0b7 (patch) | |
tree | c495ed7bd89b2d3edf7f70040d960415523f4f2f /src/exchangedb/exchange_do_batch_withdraw.sql | |
parent | 145310e20e1a80d7c3a4a76a27f1e415bea7b3ce (diff) | |
download | exchange-f8536e8c14860d121e7b88feb9843756f144a0b7.tar.xz |
-fix parameter in stored procedures
Diffstat (limited to 'src/exchangedb/exchange_do_batch_withdraw.sql')
-rw-r--r-- | src/exchangedb/exchange_do_batch_withdraw.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchangedb/exchange_do_batch_withdraw.sql b/src/exchangedb/exchange_do_batch_withdraw.sql index 870137e8e..53e908444 100644 --- a/src/exchangedb/exchange_do_batch_withdraw.sql +++ b/src/exchangedb/exchange_do_batch_withdraw.sql @@ -26,7 +26,7 @@ CREATE OR REPLACE FUNCTION exchange_do_batch_withdraw( OUT reserve_found BOOLEAN, OUT balance_ok BOOLEAN, OUT age_ok BOOLEAN, - OUT allowed_maximum_age INT4, -- in years + OUT allowed_maximum_age INT2, -- in years OUT ruuid INT8) LANGUAGE plpgsql AS $$ @@ -74,7 +74,7 @@ END IF; -- Check if age requirements are present IF ((NOT do_age_check) OR (reserve_birthday = 0)) THEN - age_ok = OK; + age_ok = TRUE; allowed_maximum_age = -1; ELSE -- Age requirements are formally not met: The exchange is setup to support |