Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql	9 Dec 2001 04:21:58 -0000	1.10
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-keyword.sql	30 Nov 2002 17:15:25 -0000	1.11
@@ -128,13 +128,12 @@
 returns integer as '
 declare
   delete__keyword_id             alias for $1;  
-  v_item_id                      integer;      
   v_rec                          record; 
 begin
 
   for v_rec in select item_id from cr_item_keyword_map 
     where keyword_id = delete__keyword_id LOOP
-    PERFORM content_keyword__item_unassign(v_item_id, delete__keyword_id);
+    PERFORM content_keyword__item_unassign(v_rec.item_id, delete__keyword_id);
   end LOOP;
 
   PERFORM acs_object__delete(delete__keyword_id);
