You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stringsql = "select * from o_order where o_order.id > :id order by id ";
SqlQuerysqlQuery = Ebean.createSqlQuery(sql);
sqlQuery.setParameter("id", 3);
sqlQuery.setMaxRows(10);
sqlQuery.findList();
javax.persistence.PersistenceException: Query threw SQLException:Syntax error in SQL statement "SELECT * FROM O_ORDER WHERE O_ORDER.ID > :[*]ID ORDER BY ID LIMIT 10 "; expected "ALL, ANY, SOME, SELECT, FROM"; SQL statement:select * from o_order where o_order.id > :id order by id limit 10 [42001-189] Query was:select * from o_order where o_order.id > :id order by id limit 10 at com.avaje.ebeaninternal.server.query.DefaultRelationalQueryEngine.findList(DefaultRelationalQueryEngine.java:87) at com.avaje.ebeaninternal.server.core.RelationalQueryRequest.findList(RelationalQueryRequest.java:102)... at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
The text was updated successfully, but these errors were encountered:
Steps to reproduce
The text was updated successfully, but these errors were encountered: