Closed
Description
Description
type RecordInfo struct {
Name string
}
xx.DB.Table("record_info").Find(&recordInfo, &search)
wanted sql
select * from record_info where record_info.name = "a"
but terminal print
select * from record_info where record_infos.name = "a"
https://github.com/go-gorm/gorm/blob/master/schema/schema.go#L97
the Parse
not use the tableName