Skip to content

SQL Server Query: DateTime addition/subtraction translation to server #11039

@smitpatel

Description

@smitpatel

Addition/subtraction of DateTime gives type of TimeSpan. At present postgre can do it correctly because it has mapping type - interval.

This issue is to track,

  • Translation of addition/subtraction for DateTime to server and materializing it back to TimeSpan on client side doing some computation.
  • Translation of member access on +/- of DateTime (e.g. (DateTime - DateTime).TotalDays) to server. For SQLite it may be possible to do using julianday function subtraction which gives difference of days in REAL type. Reading a TimeSpan will coerce the REAL value.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions