We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0d952a commit a668a39Copy full SHA for a668a39
src/NHibernate/Dialect/MsSql2005DialectQueryPager.cs
@@ -205,11 +205,6 @@ private static void AppendSortExpressionsForDistinct(Dictionary<SqlString, SqlSt
205
result.Add("q_.");
206
result.Add(value);
207
}
208
- else if (columnToAlias.ContainsValue(sortExpression)) // When a distinct query is paged the sortexpressions could already be aliased.
209
- {
210
- result.Add("q_.");
211
- result.Add(sortExpression);
212
- }
213
else
214
{
215
throw new HibernateException(
0 commit comments