例如:
IsDeleted string xorm:"not null default 'N' ENUM('N','Y')"
会报:
arg is_deleted as int: strconv.ParseInt: parsing "N": invalid syntax
解决办法:
数据库表中字段is_deleted 用类型tinyint(4)替换enum
例如:
IsDeleted string xorm:"not null default 'N' ENUM('N','Y')"
会报:
arg is_deleted as int: strconv.ParseInt: parsing "N": invalid syntax
解决办法:
数据库表中字段is_deleted 用类型tinyint(4)替换enum