Bug 336 : Using DB function in order by clause for ... with query language produces error
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.7.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
03/11/2010
Updated 
03/11/2010
Type 
Bug
 
Attachments 
No attachments

String query = "fetch user ORDER BY LENGTH(user_name),user_name";
List userList = Ebean.createQuery(User.class, query).findList();

It will throw exception "Expecting [(user_name)] to be asc or desc".

 
Rob 03 Nov 08:46
Fixed in HEAD

fixed in HEAD.

woResponse

Upload a file