http://jira.nhibernate.org/browse/NH-300
I wonder why not just add some code in loader\loader.cs like this,
around line 316, modify like this:
Code:
for ( count = 0; count < maxRows && rs.Read(); count++ )
{
object result = GetRowFromResultSet( rs, session, queryParameters, hydratedObjects, optionalObject, optionalId, keys, returnProxies );
bool resultExisting = false;
foreach(object item in results)
{
if (object.ReferenceEquals(result,item))
{
resultExisting = true;
break;
}
}
if (!resultExisting)
{
results.Add( result );
}
}