Description
PostgreSQL allows strings without the `interval` prefix while casting a string to an interval:
maxim=# select cast('1 day' as interval); interval ---------- 1 day (1 row) maxim=# select interval '1 microsecond'; interval ----------------- 00:00:00.000001 (1 row)
See https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-INPUT
Attachments
Issue Links
- links to