Open qianxiansheng90 opened 6 years ago
驱动是mysql:
mysql表结构:
CREATE TABLE test
(
id
bigint(20) NOT NULL AUTO_INCREMENT,
name
varchar(255) DEFAULT NULL,
address
varchar(255) DEFAULT NULL,
tt
datetime DEFAULT NULL,
other
text,
host
text,
PRIMARY KEY (id
)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8
type Test struct { ID int64 Name string Address string TT time.Time Other interface{}
xorm:"json"
Host net.IPxorm:"TEXT"
}报错: [xorm] [info] 2018/09/11 12:40:36.209004 [SQL] SELECT
id
,name
,address
,tt
,other
,host
FROMtest
WHERE (id>?) []interface {}{0} invalid character 's' looking for beginning of value