oracle8.1.6 select parent_id, content_folder.is_folder(item_id) as folder_p from cr_items where item_id = :resolved_id