FindAndCount 分组查询分页-统计总数BUG ? #1859

Closed
opened 2021-02-01 08:44:45 +00:00 by dafa168 · 1 comment

sql: select count(*) from order group by goods_id ;

这条sql 返回的一个列表,总数取的是 第一行数据里的字段 。 但其实返回的行数只有8行。 总数应该是8。

sql: select count(*) from `order` group by goods_id ; 这条sql 返回的一个列表,总数取的是 第一行数据里的字段 。 但其实返回的行数只有8行。 总数应该是8。
Owner

duplicated with #1726

duplicated with #1726
lunny closed this issue 2021-02-01 11:45:03 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#1859
No description provided.