category-delete-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="check_mapped_objects">      
      <querytext>
      
    select case when count(*) = 0 then 0 else 1 end 
    where exists (select 1 from category_object_map
                  where category_id = :id)

      </querytext>
</fullquery>

 
</queryset>