forked from brmlab/brmbar-github
0025: declare v
This commit is contained in:
parent
89fb60bab5
commit
c2ddab9ce8
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,8 @@
|
||||||
SELECT pg_catalog.set_config('search_path', '', false);
|
SELECT pg_catalog.set_config('search_path', '', false);
|
||||||
|
|
||||||
DO $upgrade_block$
|
DO $upgrade_block$
|
||||||
|
DECLARE
|
||||||
|
v INTEGER;
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
||||||
IF brmbar_privileged.has_exact_schema_version(24) THEN
|
IF brmbar_privileged.has_exact_schema_version(24) THEN
|
||||||
|
|
@ -93,7 +95,7 @@ BEGIN
|
||||||
FROM public.accounts a JOIN public.currencies c ON a.currency = c.id JOIN public.barcodes b ON b.account = a.id
|
FROM public.accounts a JOIN public.currencies c ON a.currency = c.id JOIN public.barcodes b ON b.account = a.id
|
||||||
WHERE b.barcode = i_barcode;
|
WHERE b.barcode = i_barcode;
|
||||||
END IF;
|
END IF;
|
||||||
|
--
|
||||||
RETURN rv;
|
RETURN rv;
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue