From a6b31d79d7c9649da43022fc5e376fce6e632c8a Mon Sep 17 00:00:00 2001 From: CyJaySong Date: Fri, 14 Jul 2023 17:50:54 +0800 Subject: [PATCH] fix conditions build on MSSQL --- internal/statements/statement.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/statements/statement.go b/internal/statements/statement.go index ae38ca27..306676e5 100644 --- a/internal/statements/statement.go +++ b/internal/statements/statement.go @@ -691,10 +691,7 @@ func (statement *Statement) CondDeleted(col *schemas.Column) builder.Cond { if col.SQLType.IsNumeric() { cond = builder.Eq{colName: 0} } else { - // FIXME: mssql: The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value. - if statement.dialect.URI().DBType != schemas.MSSQL { - cond = builder.Eq{colName: utils.ZeroTime1} - } + cond = builder.Eq{colName: utils.ZeroTime1} } if col.Nullable {