Skip to content

Commit

Permalink
- 优化 UnionAll 为 null 的 query;
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Oct 24, 2024
1 parent 4d0b583 commit a7ddaff
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ public ISelect<T1, T2, T3, T4, T5> FromQuery<T2, T3, T4, T5>(ISelect<T2> select2

public ISelect<T1> UnionAll(params ISelect<T1>[] querys)
{
querys = querys?.Where(q => q != null).ToArray();
if (querys?.Any() != true) return this;
var ret = (_orm as BaseDbProvider).CreateSelectProvider<T1>(null) as Select1Provider<T1>;
var sb = new StringBuilder().Append(LocalGetQuerySql(this));
foreach (var select2 in querys)
Expand Down

0 comments on commit a7ddaff

Please sign in to comment.