session.Insert(&[]interface{}) panic "reflect: call of reflect.Value.FieldByName on ptr Value" #1503
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#1503
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?
ver:
golang v1.13, xorm v0.7.2, core v0.6.2
,涉及代码与主分支基本一致.尝试使用
session.Insert()
插入[]interface{}
会报reflect: call of reflect.Value.FieldByName on ptr Value
.能否添加对
[]interface{}{ptr, ...}
批量插入的支持?转为用例就是能够跑通下面的用例(搬运自
master
分支session_insert_test.go
):附报错堆栈和设想方案gitea:
Please send a PR with tests.
please check up pr1504