(*Session).Iterate for *Session will not reset statement #2393
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2393
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?
It seems that (*Session).Iterate cannot reset statement, causing any Find()/Get() following Iterate() to generate queries contains conditions from the previous Iterate(). See the example (import from integrations/session_iterate_test.go:TestBufferIterate). I wonder whether this is expected, if not I can create an PR to fix it.
lunny referenced this issue2024-01-15 06:52:25 +00:00