Bug 199 : Ebean can not parse the parameter has underline "_"
Priority 
High
Reported Version 
 
Logged By 
wstone
Status 
Fixed
Fixed Version 
2.4.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
07/01/2010
Updated 
07/01/2010
Type 
Bug
 
Attachments 
No attachments

my code is:
List list = ebeanServer.find(Log4jEdi.class)
.where("logLevel=:A_A")
.setParameter("A_A", "INFO")
.findList();
System.out.println(list);
EBean will throw:
javax.persistence.PersistenceException: Query threw SQLException:index lost IN or OUT paramater:: 1 Query was:
select l.LOG_ID c0, l.LOG_DATE c1, l.LOG_LEVEL c2, l.LOG_THREAD c3, l.LOG_CLASSNAME c4, l.LOG_MSG c5
from LOG4J_EDI l
where l.LOG_LEVEL=?_A

 
Rob 13 Jan 07:50
Fixed in HEAD

Fixed in HEAD. This was an issue with BindParamsParser. Add support for underscores as part of the parameter name.

woResponse

Upload a file