From a12e848f229ca9063068a0de8165ec8d8982b7e0 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 21 Feb 2020 19:40:33 +0800 Subject: [PATCH] Fix test --- engine.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine.go b/engine.go index 2921911f..a985df6e 100644 --- a/engine.go +++ b/engine.go @@ -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} } }