Fix int time deleted bug #1539

Merged
lunny merged 5 commits from lunny/deleted_time_int64 into master 2020-02-21 12:17:45 +00:00
Showing only changes of commit 741d90f038 - Show all commits

View File

@ -96,7 +96,9 @@ func (engine *Engine) CondDeleted(col *core.Column) builder.Cond {
if col.SQLType.IsNumeric() {
cond = builder.Eq{col.Name: 0}
} else {
cond = builder.Eq{col.Name: zeroTime1}
if col.SQLType.IsTime() || engine.dialect.DBType() != core.MSSQL {
cond = builder.Eq{col.Name: zeroTime1}
}
}
if col.Nullable {