#1497 - SQL Error with @History + @SoftDelete + @OneToOne fetch=FetchType.EAGER

This commit is contained in:
rob bygrave committed 2018-10-04 19:59:36 +13:00
1 parent 2c04430185
commit c27749ae2d
5 files changed
+162 -6

No files matched your search

@@ -217,7 +217,7 @@ class CQueryBuilder {
* Return the history support if this query needs it (is a 'as of' type query).
*/
<T> CQueryHistorySupport getHistorySupport(SpiQuery<T> query) {
return query.getTemporalMode() != SpiQuery.TemporalMode.CURRENT ? historySupport : null;
return query.getTemporalMode().isHistory() ? historySupport : null;
}
/**