postgresql7.1 select file_storage__rename_file ( :file_id, -- file_id :title -- title ); select count(*) from cr_items where name = :title and parent_id = content_item__get_parent_folder(:file_id)