Index: openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql,v
diff -u -r1.19 -r1.19.2.1
--- openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql	11 Jul 2002 16:15:39 -0000	1.19
+++ openacs-4/packages/bookmarks/sql/postgresql/bookmarks-create.sql	2 Nov 2002 01:31:05 -0000	1.19.2.1
@@ -191,7 +191,7 @@
             end if;
 
             update bm_bookmarks 
-               set tree_sortkey = tree_next_value(v_parent_sk, v_max_value)
+               set tree_sortkey = tree_next_key(v_parent_sk, v_max_value)
              where bookmark_id = v_rec.bookmark_id;
 
         end LOOP;
