使用ToBatchInsert方法,入参是[]*struct,会发生异常
daniel-007 opened this issue · comments
daniel-007 commented
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
shenghui0779 commented
test是OK的,你的 []*struct 数据是啥?我看能不能复现
shenghui0779 commented
不提供,我关了哈