numerus/verify/invoice_collection.sql

14 lines
376 B
MySQL
Raw Normal View History

-- Verify numerus:invoice_collection on pg
begin;
select invoice_id
, collection_id
from numerus.invoice_collection
where false;
select 1 / count(*) from pg_class where oid = 'numerus.invoice_collection'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.invoice_collection'::regclass;
rollback;