numerus/verify/invoice_payment.sql

14 lines
361 B
MySQL
Raw Normal View History

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