Skip to content

Commit

Permalink
- 修复 ZeroDbContext GroupBy BUG;
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Feb 2, 2024
1 parent 0a6ad65 commit 49c8996
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,8 @@ public SelectImpl GroupByRaw(string sql)
if (string.IsNullOrWhiteSpace(sql)) return this;
_useStates = false;
_groupBy = $"{_groupBy}, {sql}";
_select.GroupBy(_groupBy);
_useStates = false;
_select.GroupBy(_groupBy.Substring(2));
return this;
}
public SelectImpl GroupBy(string[] fields)
Expand All @@ -783,7 +784,7 @@ public SelectImpl GroupBy(string[] fields)
if (count > 0)
{
_useStates = false;
_select.GroupBy(_groupBy);
_select.GroupBy(_groupBy.Substring(2));
}
return this;
}
Expand Down

0 comments on commit 49c8996

Please sign in to comment.