Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql,v
diff -u -N -r1.22 -r1.23
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	11 Mar 2006 23:01:06 -0000	1.22
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	4 Jun 2006 00:45:38 -0000	1.23
@@ -13,7 +13,6 @@
 -- @creation-date 2000-05-18
 --
 -- @cvs-id $Id$
---
 
 -- ******************************************************************
 -- * KNOWLEDGE LEVEL
@@ -673,7 +672,7 @@
       v_sort_order := create_attribute__sort_order;
     end if;
 
-    select acs_attribute_id_seq.nextval into v_attribute_id;
+    select acs_attribute_id_seq.nextval from dual into v_attribute_id;
 
     insert into acs_attributes
       (attribute_id, object_type, table_name, column_name, attribute_name,
