Skip to content

Commit 1211978

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

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
@@ -16,8 +16,7 @@ protected override void VisitIntervalToMilliseconds(SqlFunctionCall node)
1616
AppendSpaceIfNecessary();
1717
_ = context.Output.Append("(TRUNC(EXTRACT(EPOCH FROM (");
1818
node.Arguments[0].AcceptVisitor(this);
19-
_ = context.Output.Append(")) * 1000))");
20-
19+
_ = context.Output.Append("))::double precision * 1000))");
2120
}
2221

2322
public Compiler(SqlDriver driver)

0 commit comments

Comments
 (0)