numerus/verify/contact_tax_details.sql

20 lines
475 B
PL/PgSQL

-- Verify numerus:contact_tax_details on pg
begin;
select contact_id
, business_name
, vatin
, address
, city
, province
, postal_code
, country_code
from numerus.contact_tax_details
where false;
select 1 / count(*) from pg_class where oid = 'numerus.contact_tax_details'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.contact_tax_details'::regclass;
rollback;