Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

修复GroupBy操作时,Count() 返回错误的问题 #1169

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
try to fix testEngine.Select undefined error
  • Loading branch information
jiangyanfeng committed Dec 8, 2018
commit bd36dab342de98a0b4fbf15a3b98813f73d9e5f0
2 changes: 1 addition & 1 deletion session_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestCount(t *testing.T) {
assert.NoError(t, err)
assert.EqualValues(t, 1, cnt)

total, err = testEngine.Select(colName).Where(cond).Count(new(UserinfoCount))
total, err = testEngine.Where(cond).Select(colName).Count(new(UserinfoCount))
assert.NoError(t, err)
assert.EqualValues(t, 1, total)

Expand Down