Closed
Description
We have a system still running with an old version of NHibernate and I've found a bug when experimenting with current release of NHibernate:
When the needsLimit variable is true in PerformList or PerformListAsync, the Limit is done in memory. To detect duplicates, there's an ISet distinction. In current code, the items are skipped if they can be added to the distinction set but that means they have not yet been added to the combinedResults list. It must be the other way round.
I'll try to prepare a PR.