未验证 提交 8b8c6043 编写于 作者: S Shay Rojansky 提交者: GitHub

Recognize empty index descending array in IsDefaultNullSortOrder (#2574)

Fixes #2566
上级 ded930d8
......@@ -18,7 +18,7 @@ internal static class SortOrderHelper
var nullSortOrder = nullSortOrders[i];
// We need to consider the ASC/DESC sort order to determine the default NULLS FIRST/LAST sort order.
if (isDescendingValues is not null && isDescendingValues[i])
if (isDescendingValues is not null && (isDescendingValues.Count == 0 || isDescendingValues[i]))
{
// NULLS FIRST is the default when DESC is specified.
if (nullSortOrder != NullSortOrder.NullsFirst)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册