-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spanner): correct use of Interval offset in Timestamp addition (#…
…14121) When adding an `Interval` to a `Timestamp`+time-zone, the offset should be interpreted as an absolute value rather than a civil one. (This is a poor choice in my opinion, but so be it.) Update the test case, which now has to use a "1 day" interval to show the difference between `Add(ts, "1 day", tz)` and `Add(ts, "24 hours", tz)` over a civil-time discontinuity. Add a new test based upon the postgresql.org examples, one of which would have demonstrated the original problem.
- Loading branch information
Showing
2 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters