Skip to content

Commit 23a1f01

Browse files
committed
Adjust interval-addition test so that it won't fail on DST transition days.
Strange that we missed this DST dependence while fixing the others.
1 parent f7ae900 commit 23a1f01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/regress/expected/horology.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,11 +855,11 @@ SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08";
855855
-- SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
856856
-- SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
857857
-- Try the following two tests instead, as a poor substitute
858-
SELECT CAST(CAST(date 'today' + time with time zone '01:30'
859-
+ interval '02:01' AS time with time zone) AS time) AS "03:31:00";
860-
03:31:00
858+
SELECT CAST(CAST(date 'today' + time with time zone '05:30'
859+
+ interval '02:01' AS time with time zone) AS time) AS "07:31:00";
860+
07:31:00
861861
----------
862-
03:31:00
862+
07:31:00
863863
(1 row)
864864

865865
SELECT CAST(cast(date 'today' + time with time zone '03:30'

src/test/regress/sql/horology.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08";
153153
-- SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
154154
-- Try the following two tests instead, as a poor substitute
155155

156-
SELECT CAST(CAST(date 'today' + time with time zone '01:30'
157-
+ interval '02:01' AS time with time zone) AS time) AS "03:31:00";
156+
SELECT CAST(CAST(date 'today' + time with time zone '05:30'
157+
+ interval '02:01' AS time with time zone) AS time) AS "07:31:00";
158158

159159
SELECT CAST(cast(date 'today' + time with time zone '03:30'
160160
+ interval '1 month 04:01' as timestamp without time zone) AS time) AS "07:31:00";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy