timandy / GoMybatis

Mybatis for golang.
Apache License 2.0
9 stars 1 forks source link

mysql8.2版本的表使用datetime类型时解析错误,在数据插入时没有问题,但是在获取数据时发生了错误 #18

Open zou-zhiheng opened 1 year ago

zou-zhiheng commented 1 year ago

parsing time "\"2023-09-28 06:33:54\"" as "\"2006-01-02T15:04:05Z07:00\"": cannot parse " 06:33:54\"" as "T" [recovered] panic: parsing time "\"2023-09-28 06:33:54\"" as "\"2006-01-02T15:04:05Z07:00\"": cannot parse " 06:33:54\"" as "T"

zou-zhiheng commented 1 year ago

我修改了引用包的源码,重写了time类型,问题已经解决

timandy commented 11 months ago

我修改了引用包的源码,重写了time类型,问题已经解决

可以发个 PR