Skip to content

Commit a4ea274

Browse files
authored
Merge pull request #249 from alex-310/orderbynull
2 parents 37ea6ab + 0b525ce commit a4ea274

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ShardingCore/Sharding/Enumerators/StreamMergeAsync/OrderStreamMergeAsyncEnumerator.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ private List<IComparable> GetCurrentOrderValues()
106106
{
107107
list.Add((IComparable)value);
108108
}
109+
else if (value == null) // Support Nullable<xx>
110+
{
111+
list.Add(null);
112+
}
109113
else
110114
{
111115
throw new NotSupportedException($"order by value [{order}] must implements IComparable");
@@ -142,4 +146,4 @@ public ValueTask DisposeAsync()
142146
#endif
143147

144148
}
145-
}
149+
}

0 commit comments

Comments
 (0)