#782 - History Many-To-Many Lazy-Loads fail

This commit is contained in:
Robin Bygrave
2016-07-25 23:31:02 +12:00
parent b763f4c875
commit 6108ef484b
6 changed files with 47 additions and 2 deletions
@@ -472,8 +472,7 @@ public class CQueryBuilder {
hasWhere = true;
}
int asOfCount = query.getAsOfTableCount();
if (asOfCount > 0 && !historySupport.isStandardsBased()) {
if (query.isAsOfBaseTable() && !historySupport.isStandardsBased()) {
hasWhere = appendWhere(hasWhere, sb);
sb.append(historySupport.getAsOfPredicate(request.getBaseTableAlias()));
}