paulf wrote:
select * from ( select entry0_.entryId as entryId,
entry0_.accountId as accountId,
entry0_.syncDataSourceId as syncData3_,
entry0_.isCurrent as isCurrent,
entry0_.dateCreated as dateCrea5_,
entry0_.dateLastChanged as dateLast6_,
entry0_.isReadOnly as isReadOnly,
entry0_.modifiedBy as modifiedBy,
entry0_.firstName as firstName,
entry0_.lastName as lastName,
entry0_.additionalNames as additio11_,
entry0_.prefix as prefix,
entry0_.suffix as suffix,
entry0_.formattedName as formatt14_,
entry0_.defaultEmail as default15_,
entry0_.defaultEmailType as default16_,
entry0_.defaultPhone as default17_,
entry0_.defaultPhoneType as default18_,
entry0_.modifyingDeviceId as modifyi19_
from entry entry0_
where (entry0_.accountId=? )
and((lower(entry0_.firstName)like lower(?))or(lower(entry0_.lastName)like lower(?)))
and(entry0_.isCurrent=1 )
order by lower(entry0_.firstName)||lower(entry0_.lastName) )
where rownum <= ?
That's strange. I don't think rownum is valid in mysql.