Skip to content

Commit

Permalink
Fix for ReportQuery not fetching relationships with BatchFetch.IN
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Nov 22, 2024
1 parent 954fef6 commit ca6376f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,12 @@ public Object executeDatabaseQuery() throws DatabaseException {
return getDescriptor().getInterfacePolicy().selectAllObjectsUsingMultipleTableSubclassRead(this);
}

return buildObjects(getQueryMechanism().selectAllReportQueryRows());
List<AbstractRecord> rows = getQueryMechanism().selectAllReportQueryRows();
if ((this.batchFetchPolicy != null) && this.batchFetchPolicy.isIN()) {
this.batchFetchPolicy.setDataResults(rows);
}

return buildObjects((Vector) rows);
}

/**
Expand Down

0 comments on commit ca6376f

Please sign in to comment.