This commit is contained in:
Lunny Xiao 2020-02-21 19:40:33 +08:00
parent 741d90f038
commit a12e848f22
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ func (engine *Engine) CondDeleted(col *core.Column) builder.Cond {
if col.SQLType.IsNumeric() {
cond = builder.Eq{col.Name: 0}
} else {
if col.SQLType.IsTime() || engine.dialect.DBType() != core.MSSQL {
// FIXME: mssql: The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.
if engine.dialect.DBType() != core.MSSQL {
cond = builder.Eq{col.Name: zeroTime1}
}
}