camper/verify/surroundings_ad.sql

20 lines
753 B
MySQL
Raw Normal View History

-- Verify camper:surroundings_ad on pg
begin;
select company_id
, media_id
, title
, anchor
, href
from camper.surroundings_ad
where false;
select 1 / count(*) from pg_class where oid = 'camper.surroundings_ad'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'guest_ok' and polrelid = 'camper.surroundings_ad'::regclass;
select 1 / count(*) from pg_policy where polname = 'insert_to_company' and polrelid = 'camper.surroundings_ad'::regclass;
select 1 / count(*) from pg_policy where polname = 'update_company' and polrelid = 'camper.surroundings_ad'::regclass;
select 1 / count(*) from pg_policy where polname = 'delete_from_company' and polrelid = 'camper.surroundings_ad'::regclass;
rollback;