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 -r1.32 -r1.33
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	26 Feb 2011 18:20:47 -0000	1.32
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	5 Mar 2011 01:31:31 -0000	1.33
@@ -656,7 +656,7 @@
       end if;
 
       select table_name into v_supertype_table from acs_object_types
-      where object_type = p_supertype;
+      where object_type = v_supertype;
   
       execute ''create table '' || v_table_name || '' ('' ||
         v_id_column || '' integer constraint '' || v_table_name ||
