Skip to content

Commit 2617841

Browse files
committed
Handle change of result type of Extract in Posgre for TotalMilliseconds
1 parent aeae65a commit 2617841

File tree

1 file changed

+1
-2
lines changed
  • Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v9_0

1 file changed

+1
-2
lines changed

Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v9_0/Compiler.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ protected override void VisitIntervalToMilliseconds(SqlFunctionCall node)
1717
AppendSpaceIfNecessary();
1818
_ = context.Output.Append("(TRUNC(EXTRACT(EPOCH FROM (");
1919
node.Arguments[0].AcceptVisitor(this);
20-
_ = context.Output.Append(")) * 1000))");
21-
20+
_ = context.Output.Append("))::double precision * 1000))");
2221
}
2322

2423
public Compiler(PostgreSql.Driver driver)

0 commit comments

Comments
 (0)