Index: openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.5.0d2-5.5.0d3.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.5.0d2-5.5.0d3.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.5.0d2-5.5.0d3.sql	23 Oct 2008 13:04:04 -0000	1.1
+++ openacs-4/packages/acs-content-repository/sql/postgresql/upgrade/upgrade-5.5.0d2-5.5.0d3.sql	24 Oct 2008 13:50:14 -0000	1.2
@@ -69,7 +69,7 @@
 
   -- would be better to check if the copy__name alredy exists in the destination folder.
 
-  if v_current_folder_id = copy__target_folder_id and v_name = copy__name then
+  if v_current_folder_id = copy__target_folder_id and (v_name = copy__name or copy__name is null) then
     raise EXCEPTION ''-20000: content_folder.copy - Destination folder is parent folder and folder alredy exists'';
   end if;
 
