uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.65k stars 221 forks source link

If ScanAndCount is used, the query cannot contain Group. #923

Open iaping opened 11 months ago

iaping commented 11 months ago

db.NewSelect().Model(model).Limit(limit).Offset(offset).Group("field").ScanAndCount(ctx)

It does not perform properly