nhibernate/nhibernate-core — pull request #45 by hazzik (2012-01-09 11:29:30+00:00)
Title: NH-3001: regression count on joined group by

After #39 following test fails

```csharp
var query = from foo in Session.Query()
join bar in Session.Query()
on foo equals bar.Foo
group bar by bar.RunTask.Id
into temp
select new { temp.Key, count = temp.Count()};

var result = query.ToList();
```

```
NHibernate.HibernateException: Query Source could not be identified: ItemName = _1, ItemType = Namespace.Bar, Expression = from Bar _1 in [foo]
```

JIRA: https://nhibernate.jira.com/browse/NH-3001