forked from brmlab/brmbar-github
0023: security definer
This commit is contained in:
parent
39fe8d97fd
commit
7a301379f0
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ GROUP BY ts.account;
|
|||
|
||||
CREATE OR REPLACE FUNCTION public.inventory_balance()
|
||||
RETURNS DECIMAL(12,2)
|
||||
VOLATILE NOT LEAKPROOF LANGUAGE plpgsql AS $fn$
|
||||
VOLATILE NOT LEAKPROOF LANGUAGE plpgsql SECURITY DEFINER AS $fn$
|
||||
DECLARE
|
||||
rv DECIMAL(12,2);
|
||||
BEGIN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue