fix Interface2Interface *sql.RawBytes light copy bug #2237
No reviewers
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#2237
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "master"
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?
修复一次性查询多条数据,row转换为map[string]interface{} []byte切片浅拷贝问题。
What's the bug itself?
When the number returned by the session.QueryInterface query is greater than 1, the same sql.Bytes is used. Here is a shallow copy, which will contaminate the previous data. Lead to garbled strings
Thanks to point out. Could you add some unit test here?
I submitted a test case to see what else needs to be adjusted
Pull request closed