clipboard-remove-postgresql.xql

DB Query file

Related Files

[ hide source ] | [ make this the default ]

File Contents

<?xml version="1.0"?>

<queryset>
   <rdbms><type>postgresql</type><version>7.1</version></rdbms>

<fullquery name="unmap_photo">      
      <querytext>

    delete from pa_collection_photo_map 
    where collection_id = :collection_id 
      and photo_id = :photo_id 
      and acs_permission__permission_p(:collection_id, :user_id, 'write') = 't'

      </querytext>
</fullquery>
 
</queryset>