Index: openacs-4/packages/acs-kernel/sql/oracle/acs-relationships-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/oracle/acs-relationships-create.sql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-kernel/sql/oracle/acs-relationships-create.sql	11 May 2001 00:14:48 -0000	1.2
+++ openacs-4/packages/acs-kernel/sql/oracle/acs-relationships-create.sql	13 Feb 2002 16:58:33 -0000	1.3
@@ -249,9 +249,9 @@
   begin
     -- XXX do cascade_p
     delete from acs_rel_types
-    where rel_type = drop_type.rel_type;
+    where acs_rel_types.rel_type = acs_rel_type.drop_type.rel_type;
 
-    acs_object_type.drop_type(drop_type.rel_type, drop_type.cascade_p);
+    acs_object_type.drop_type(acs_rel_type.drop_type.rel_type, acs_rel_type.drop_type.cascade_p);
   end;
 
 end acs_rel_type;
