当打开 cacher的时候,FindAndCount返回的count错误 #1181

Closed
opened 2018-12-28 09:12:54 +00:00 by yayanyang · 2 comments
yayanyang commented 2018-12-28 09:12:54 +00:00 (Migrated from github.com)

打开Cacher的时候,FindAndCount 返回的Count是 Limits后的的大小而不是整个表的大小

打开Cacher的时候,FindAndCount 返回的Count是 Limits后的的大小而不是整个表的大小
yokesnowwolf commented 2019-07-19 06:52:18 +00:00 (Migrated from github.com)

是有这个问题。

v0.7.3 文件session_find.go 函数 cacheFind 中,第449行如下代码将 in 条件写入了后续count同样需要用到的 session:
session.In(""+table.PrimaryKeys[0]+"", ff...)

是有这个问题。 v0.7.3 文件session_find.go 函数 cacheFind 中,第449行如下代码将 in 条件写入了后续count同样需要用到的 session: session.In("`"+table.PrimaryKeys[0]+"`", ff...)
lunny added
duplicate
and removed
need
test
labels 2020-03-23 12:47:27 +00:00

duplicated with #1406

duplicated with #1406
lunny closed this issue 2020-03-23 12:47:51 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 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#1181
No description provided.