diff --git a/src/test/regress/expected/horology.out b/src/test/regress/expected/horology.out index ea22c443861e50c742858a37153fe59295bbb531..98af32ec5270c4028327f217d82fe4a294573bad 100644 --- a/src/test/regress/expected/horology.out +++ b/src/test/regress/expected/horology.out @@ -855,11 +855,11 @@ SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08"; -- SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08"; -- SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08"; -- Try the following two tests instead, as a poor substitute -SELECT CAST(CAST(date 'today' + time with time zone '01:30' - + interval '02:01' AS time with time zone) AS time) AS "03:31:00"; - 03:31:00 +SELECT CAST(CAST(date 'today' + time with time zone '05:30' + + interval '02:01' AS time with time zone) AS time) AS "07:31:00"; + 07:31:00 ---------- - 03:31:00 + 07:31:00 (1 row) SELECT CAST(cast(date 'today' + time with time zone '03:30' diff --git a/src/test/regress/sql/horology.sql b/src/test/regress/sql/horology.sql index d4be1f51d5e9d75584737a35dad6283addde7143..922b511a864e575162d7fd09a971b4a0ae5504c0 100644 --- a/src/test/regress/sql/horology.sql +++ b/src/test/regress/sql/horology.sql @@ -153,8 +153,8 @@ SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08"; -- SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08"; -- Try the following two tests instead, as a poor substitute -SELECT CAST(CAST(date 'today' + time with time zone '01:30' - + interval '02:01' AS time with time zone) AS time) AS "03:31:00"; +SELECT CAST(CAST(date 'today' + time with time zone '05:30' + + interval '02:01' AS time with time zone) AS time) AS "07:31:00"; SELECT CAST(cast(date 'today' + time with time zone '03:30' + interval '1 month 04:01' as timestamp without time zone) AS time) AS "07:31:00";