Skip to content

Commit 37cb51b

Browse files
committed
Fix inversed ticks values
1 parent e9739dd commit 37cb51b

File tree

1 file changed

+1
-1
lines changed
  • Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/v13

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/v13/Compiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public override void Visit(SqlFunctionCall node)
3636
// we have to use time consuming algorithm here because
3737
// DATEDIFF_BIG can throw arithmetic overflow on nanoseconds
3838
// so we should handle it by this big formula
39-
Visit(CastToLong(DateTimeSubtractDateTimeExpensive(binary.Right, binary.Left)));
39+
Visit(CastToLong(DateTimeSubtractDateTimeExpensive(binary.Left, binary.Right)));
4040
}
4141
else {
4242
base.Visit(node);

0 commit comments

Comments
 (0)