This commit is contained in:
Ztian Ele 2019-10-08 09:38:19 +00:00 committed by GitHub
commit 466940e45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1583,7 +1583,10 @@ func (engine *Engine) formatColTime(col *core.Column, t time.Time) (v interface{
if col.Nullable {
return nil
}
return ""
if col.Default != "" {
return col.Default
}
return engine.formatTime(col.SQLType.Name, t)
}
if col.TimeZone != nil {