From 8d2c9cb20f245476c73d6c5d3e229107013843f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Pant=C5=AF=C4=8Dek?= Date: Thu, 10 Jul 2025 16:05:19 +0200 Subject: [PATCH] Schema 0009: fix DDL statements ends, fix argument delimiters in second procedure as well --- brmbar3/schema/0009-shop-sell.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/brmbar3/schema/0009-shop-sell.sql b/brmbar3/schema/0009-shop-sell.sql index 7f411dc..4be346c 100644 --- a/brmbar3/schema/0009-shop-sell.sql +++ b/brmbar3/schema/0009-shop-sell.sql @@ -52,13 +52,13 @@ EXCEPTION WHEN NO_DATA_FOUND THEN RETURN -1; END; -$$ +$$; -- return negative number on rate not found CREATE OR REPLACE FUNCTION public.find_sell_rate( - IN i_item_id public.accounts.id%TYPE; - IN i_other_id public.accounts.id%TYPE; + IN i_item_id public.accounts.id%TYPE, + IN i_other_id public.accounts.id%TYPE ) RETURNS NUMERIC LANGUAGE plpgsql AS $$ @@ -76,7 +76,7 @@ EXCEPTION WHEN NO_DATA_FOUND THEN RETURN -1; END; -$$ +$$; CREATE OR REPLACE FUNCTION public.create_transaction( i_responsible_id public.accounts.id%TYPE,