Merge 75e384df91
into 6a47ef9b49
This commit is contained in:
commit
70ed213a3e
|
@ -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 ""
|
||||||
|
|
Loading…
Reference in New Issue