Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql,v
diff -u -r1.20 -r1.21
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql	28 Apr 2001 17:35:30 -0000	1.20
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-objects-create.sql	3 Jul 2001 00:09:40 -0000	1.21
@@ -1012,7 +1012,7 @@
    v_table_name := acs_object__get_attr_storage_table(v_storage);
    v_key_sql    := acs_object__get_attr_storage_sql(v_storage);
 
-   for v_rec in execute ''select '' || quote_ident(v_column) || '' as return from '' || quote_ident(v_table_name) || '' where '' || v_key_sql
+   for v_rec in execute ''select '' || quote_ident(v_column) || ''::varchar as return from '' || quote_ident(v_table_name) || '' where '' || v_key_sql
       LOOP
         v_return := v_rec.return;
         exit;
