This commit is contained in:
Darlzan 2019-10-02 17:47:02 +00:00 committed by GitHub
commit 70ed213a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1580,7 +1580,7 @@ func (engine *Engine) nowTime(col *core.Column) (interface{}, time.Time) {
func (engine *Engine) formatColTime(col *core.Column, t time.Time) (v interface{}) { func (engine *Engine) formatColTime(col *core.Column, t time.Time) (v interface{}) {
if t.IsZero() { if t.IsZero() {
if col.Nullable { if col.Nullable || !col.DefaultIsEmpty {
return nil return nil
} }
return "" return ""