shenghui0779 / yiigo

Go 开发工具包

Home Page:https://pkg.go.dev/github.com/shenghui0779/yiigo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用ToBatchInsert方法,入参是[]*struct,会发生异常

daniel-007 opened this issue · comments

panic: reflect: call of reflect.Value.NumField on zero Value
github.com/shenghui0779/yiigo.(*QueryWrapper).batchInsertWithStruct(0xc000161400, 0x1b1f680, 0xc000a16000, 0x97)
.../mod/github.com/shenghui0779/yiigo@v1.0.6/sql_builder.go:299 +0x111

test是OK的,你的 []*struct 数据是啥?我看能不能复现

不提供,我关了哈