Skip to content

Commit

Permalink
Merge pull request #4486 from szarnyasg/nits-20250107a
Browse files Browse the repository at this point in the history
Reword warning
  • Loading branch information
szarnyasg authored Jan 7, 2025
2 parents ba58048 + 40aacc2 commit 54f2eb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/sql/data_types/interval.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ SELECT
TIME '02:00:00' - INTERVAL '3 days 23 hours', -- wraps; equals TIME '03:00:00'
;
```
> Warning Adding or subtracting an `INTERVAL` to a `DATE`s will return a `TIMESTAMP` with the time component set to `00:00:00.000000`.

> Warning Addition or subtraction of an `INTERVAL` value with a `DATE` value will return a `TIMESTAMP` with the time component set to `00:00:00.000000`.
Conversely, subtracting two `TIMESTAMP`s or two `TIMESTAMPTZ`s from one another creates an `INTERVAL` describing the difference between the timestamps with only the *days and microseconds* components. For example:

Expand Down

0 comments on commit 54f2eb2

Please sign in to comment.