select count(*)
from acs_privileges
where privilege = :privilege
select case when security_inherit_p = 't' then 1 else 0 end
from acs_objects
where object_id = :object_id
update acs_objects
set security_inherit_p = 't'
where object_id = :object_id
update acs_objects
set security_inherit_p = 'f'
where object_id = :object_id