numerus/verify/expense_tax.sql

15 lines
357 B
PL/PgSQL

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