You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gqcn
added
bug
It is confirmed a bug, but don't worry, we'll handle it.
done
This issue is done, which may be release in next version.
labels
Jan 18, 2023
ENV
go version :go 1.18 windows/amd64
GoFrame Version : v2.1.1
Mysql : 5.7
Mysql Drivers : v2.1.0
Can this issue be re-produced with the latest release?
yes
What did you do?
在 MySQL表里,我创建了
time
类型的字段:gf gen dao
生成的package do
结构体:我在新增数据时,像这样操作,出现了问题:
我得到这样的 sql 语句,以及 error
我顺便测试了下,修改年份,MySQL可以插入
为了规避这个问题,我强行把
do.CTable.BeginAt
类型修改成了空接口插入数据时,存入手动转换的字符串:
虽然可以跑,但我觉得不应该修改
package do
的内容,也不优雅..The text was updated successfully, but these errors were encountered: