Clone 方法在v1.0.0版本中不能复用查询条件 #1658
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1658
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
我在老版本做分页查询里,要显示总数,当前页数据。复用查询条件,使用Clone()方法实现。当我更新xorm版本到v1.0.0版后,复用查询条件失效。
能是实现一个兼容方法?
Clone
has been removed and will not be taken back.Please use
FindAndCount
or you could usebuilder
to create a new condition.@lunny This should be marked as backwards incompatible in doc. If a newbie checked the documents, he will be misleading
@k3v1n I think you are right.
如果是join与多层selec(select)等的复杂语句,还是会使用clone的,使用conds并不满足一些需求,不推荐删除掉该功能。