Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql,v
diff -u -r1.48.2.3 -r1.48.2.4
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql	6 Dec 2016 12:04:04 -0000	1.48.2.3
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql	12 Feb 2017 00:15:44 -0000	1.48.2.4
@@ -674,7 +674,7 @@
   v_content                            cr_revisions.content%TYPE;
   v_lob                                cr_revisions.lob%TYPE;
   v_new_lob                            cr_revisions.lob%TYPE;
-  v_storage_type                       varchar;
+  v_storage_type                       cr_items.storage_type%TYPE;
 BEGIN
   if content_copy__revision_id is null then 
 	raise exception 'content_revision__content_copy attempt to copy a null revision_id';
@@ -769,7 +769,7 @@
    get_content__revision_id integer
 ) RETURNS text AS $$
 DECLARE
-  v_storage_type                      varchar;
+  v_storage_type                      cr_items.storage_type%TYPE;
   v_lob_id                            integer;
   v_data                              text;
 BEGIN
