14 lines
341 B
PL/PgSQL
14 lines
341 B
PL/PgSQL
-- Verify numerus:invoice_tag on pg
|
|
|
|
begin;
|
|
|
|
select invoice_id
|
|
, tag_id
|
|
from numerus.invoice_tag
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'numerus.invoice_tag'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.invoice_tag'::regclass;
|
|
|
|
rollback;
|