Index: openacs-4/packages/acs-subsite/tcl/relation-procs-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/relation-procs-postgresql.xql,v
diff -u -r1.6.30.1 -r1.6.30.2
--- openacs-4/packages/acs-subsite/tcl/relation-procs-postgresql.xql 21 Apr 2017 15:27:49 -0000 1.6.30.1
+++ openacs-4/packages/acs-subsite/tcl/relation-procs-postgresql.xql 19 May 2017 16:57:53 -0000 1.6.30.2
@@ -5,42 +5,34 @@
-
- select rel_constraint__violation(:rel_id)
-
+ select rel_constraint__violation(:rel_id)
- begin perform ${package_name}__delete(:rel_id); return null; end;
+ select ${package_name}__delete(:rel_id) from dual
-
select case when exists
(select 1 from rc_violations_by_removing_rel r where r.rel_id = :rel_id)
then 1 else 0 end
-
-
-
select case when exists
(select 1 from rc_valid_rel_types r
where r.group_id = :group_id
and r.rel_type = :rel_type)
then 1 else 0 end
-
-