You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Postgres] allows extra options for the `INTERVAL` data type; namely
fields and subsecond precision. For example `'3 years 1
second'::interval year to month` casts the interval and strips the
seconds, and `'1.3333 seconds'::interval(1)` returns `1.3` seconds.
This is supported by adding two optional fields to `DataType::Interval`,
along with a new `enum` for the allowed fields.
Note that [MSSQL] also supports similar options, but with more
complicated precision syntax, e.g. `INTERVAL HOUR(p) TO SECOND(q)`. This
is not implemented in this commit because I don't have a way to test it.
[Postgres]: https://www.postgresql.org/docs/17/datatype-datetime.html
[MSSQL]: https://learn.microsoft.com/en-us/sql/odbc/reference/appendixes/sql-data-types?view=sql-server-ver17
0 commit comments