gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: amount-specific functions, not p


From: gnunet
Subject: [taler-exchange] branch master updated: amount-specific functions, not procedures
Date: Tue, 01 Aug 2023 12:29:57 +0200

This is an automated email from the git hooks/post-receive script.

oec pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new aee28843 amount-specific functions, not procedures
aee28843 is described below

commit aee288438cf7c92c9e6596f7efcdcdefa074820c
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Tue Aug 1 12:29:49 2023 +0200

    amount-specific functions, not procedures
---
 src/exchangedb/exchange_do_amount_specific.sql | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/exchangedb/exchange_do_amount_specific.sql 
b/src/exchangedb/exchange_do_amount_specific.sql
index 96846cce..e8f60f40 100644
--- a/src/exchangedb/exchange_do_amount_specific.sql
+++ b/src/exchangedb/exchange_do_amount_specific.sql
@@ -2,7 +2,7 @@
 -- Taler amounts and helper functions
 -------------------------------------------------------------
 
-CREATE OR REPLACE PROCEDURE amount_normalize(
+CREATE OR REPLACE FUNCTION amount_normalize(
     IN amount taler_amount
   ,OUT normalized taler_amount
 )
@@ -13,10 +13,10 @@ BEGIN
   normalized.frac = amount.frac % 100000000;
 END $$;
 
-COMMENT ON PROCEDURE amount_normalize
+COMMENT ON FUNCTION 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
@@ -33,7 +33,7 @@ BEGIN
   END IF;
 END $$;
 
-COMMENT ON PROCEDURE amount_add
+COMMENT ON FUNCTION amount_add
   IS 'Returns the normalized sum of two amounts. It raises an exception when 
the resulting .val is larger than 2^52';
 
 CREATE OR REPLACE FUNCTION amount_left_minus_right(

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]