Fix int time deleted bug #1539
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user