Open lxy1078014075 opened 3 years ago
type User struct {
Address Address `xorm:"json"`
}
col.SQLType.IsJson() == true
type User struct { Address Address `xorm:"json"` }
col.SQLType.IsJson() == true
what is mean? and where i can read the example?
internal/statments/values的Value2Interface函数在结构体转换的时候一直报"no primary key for col xxx"的错误 看了一下源码,结构体部分一定会进入!col.SQLType.IsJson()分支,如果把这个分支放在最后,程序就能够正常的进行