mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix for #174 - Incorrect SQL generated with syntax error at the "order by" clause
This commit is contained in:
@@ -291,6 +291,7 @@ public class SqlTreeBuilder {
|
||||
|
||||
// remove ManyWhereJoins from the predicateIncludes
|
||||
predicateIncludes.removeAll(manyWhereJoins.getPropertyNames());
|
||||
predicateIncludes.addAll(predicates.getOrderByIncludes());
|
||||
|
||||
// look for predicateIncludes that are not in selectIncludes and add
|
||||
// them as extra joins to the query
|
||||
|
||||
Reference in New Issue
Block a user