numerus/verify/quote_product_tax.sql

15 lines
387 B
PL/PgSQL

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