fetch(content, search, hash(text, 'foo', sort_by, array('attribute', true, 'class_identifier/attribute'))</code>
produces a wrong SQL query. class_identifier/attribute is not replaced by its attribute id.
<code>
Error: eZMySQLDB Nov 02 2006 10:53:21
Query error: Unknown column 'programme' in 'where clause'. Query: SELECT DISTINCT ezcontentobject.*, ezcontentclass.name as class_name, ezcontentobject_tree.*
, ezcontentobject_name.name as name, ezcontentobject_name.real_translation
FROM
ezsearch_tmp__0 ,
ezcontentobject,
ezcontentclass,
ezcontentobject_tree
, ezcontentobject_name
, ezcontentobject_attribute as a0
WHERE
ezcontentobject.id=ezsearch_tmp__0.contentobject_id AND
ezcontentobject.contentclass_id = ezcontentclass.id and
ezcontentclass.version = '0' and
ezcontentobject.id = ezcontentobject_tree.contentobject_id and
ezcontentobject_tree.node_id = ezcontentobject_tree.main_node_id
and ezcontentobject_tree.contentobject_id = ezcontentobject_name.contentobject_id and
ezcontentobject_tree.contentobject_version = ezcontentobject_name.content_version and
( ezcontentobject_name.language_id & ezcontentobject.language_mask > 0 AND
( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 1 )
+ ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 2 ) )
<
( ezcontentobject_name.language_id & 1 )
+ ( ( ezcontentobject_name.language_id & 2 ) )
)
<code>fetch(content, search, hash(text, 'foo', sort_by, array('attribute', true, 20))</code> works well.