15 lines
393 B
PL/PgSQL
15 lines
393 B
PL/PgSQL
-- Verify camper:invoice_product_tax on pg
|
|
|
|
begin;
|
|
|
|
select invoice_product_id
|
|
, tax_id
|
|
, tax_rate
|
|
from camper.invoice_product_tax
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'camper.invoice_product_tax'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.invoice_product_tax'::regclass;
|
|
|
|
rollback;
|