Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql,v
diff -u -r1.57.2.2 -r1.57.2.3
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql	2 Feb 2016 14:41:50 -0000	1.57.2.2
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql	10 Feb 2016 09:14:20 -0000	1.57.2.3
@@ -762,6 +762,7 @@
                                      now(),
                                      p_new.creation_user, 
                                      p_new.creation_ip,
+                                     null,                   -- content_length
                                      p_new.object_package_id
                 ) into v_revision_id;
                 ';
@@ -777,13 +778,13 @@
                     and ot1.table_name is not null
                   order by level asc
   LOOP
-    function_text := function_text || ' ' || content_type__trigger_insert_statement(type_rec.object_type) || ';
+    function_text := function_text || content_type__trigger_insert_statement(type_rec.object_type) || ';
     ';
   end loop;
 
   function_text := function_text || '
    return;
-   end;'' language ''plpgsql''; 
+   end;'' language plpgsql; 
    ';
   -- end building the rule definition code
 
