What a defect :
CS-50865 (DQL condition '' = 'xyz' always true in Oracle).
select count(object_name) from dm_document where object_name=''
=> returns 0
select count(object_name) from dm_document where ''=object_name
=> returns the total number of dm_document objects
Here are the generated SQL.
1. select all count(dm_document.object_name) from dm_document_sp dm_document where ((dm_document.object_name='')) and (dm_document.i_has_folder = 1 and dm_document.i_is_deleted = 0)
2. select all count(dm_document.object_name) from dm_document_sp dm_document where ((''=dm_document.object_name OR '' IS NULL)) and (dm_document.i_has_folder = 1 and dm_document.i_is_deleted = 0)
It will normally be fixed in 7.1.0200.Oracle
Roy