This commit is contained in:
Lunny Xiao 2021-06-12 15:22:07 +08:00
parent e3b6f79b43
commit 5e0fb3d3b3
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ func (session *Session) genInsertColumns(bean interface{}) ([]string, []interfac
if col.SQLType.IsNumeric() {
args = append(args, 0)
} else {
args = append(args, time.Time{})
args = append(args, time.Time{}.Format("2006-01-02 15:04:05"))
}
} else {
args = append(args, nil)