camper/verify/contact_phone.sql

14 lines
344 B
MySQL
Raw Normal View History

-- Verify camper:contact_phone on pg
begin;
select contact_id
, phone
from camper.contact_phone
where false;
select 1 / count(*) from pg_class where oid = 'camper.contact_phone'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.contact_phone'::regclass;
rollback;