commit ff3afba707bbd3fb0bdbafacaa8bad77f55719fb
parent 08850ccd91ca448c7fa9d63e2e0088578c6b070d
Author: Antoine A <>
Date: Mon, 16 Oct 2023 09:39:45 +0000
Fix procedures.sql
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/database-versioning/procedures.sql b/database-versioning/procedures.sql
@@ -1,7 +1,7 @@
BEGIN;
SET search_path TO libeufin_bank;
-CREATE OR REPLACE PROCEDURE amount_normalize(
+CREATE OR REPLACE FUNCTION amount_normalize(
IN amount taler_amount
,OUT normalized taler_amount
)
@@ -14,7 +14,7 @@ END $$;
COMMENT ON PROCEDURE amount_normalize
IS 'Returns the normalized amount by adding to the .val the value of (.frac / 100000000) and removing the modulus 100000000 from .frac.';
-CREATE OR REPLACE PROCEDURE amount_add(
+CREATE OR REPLACE FUNCTION amount_add(
IN a taler_amount
,IN b taler_amount
,OUT sum taler_amount