From: Thomas G. Lockhart Date: Wed, 31 Oct 2001 14:44:23 +0000 (+0000) Subject: Fix queries to insulate from daylight savings time. X-Git-Tag: REL7_2_BETA2~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c859ff92d05f85d8378139db812315a63c954975;p=postgresql Fix queries to insulate from daylight savings time. --- diff --git a/src/test/regress/expected/timetz.out b/src/test/regress/expected/timetz.out index ddc785cc4f..62e5c19f00 100644 --- a/src/test/regress/expected/timetz.out +++ b/src/test/regress/expected/timetz.out @@ -27,7 +27,7 @@ SELECT f1 AS "Time TZ" FROM TIMETZ_TBL; 23:59:59.99-07 (10 rows) -SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07'; +SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07-07'; Three ------------- 00:01:00-07 @@ -35,7 +35,7 @@ SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07'; 02:03:00-07 (3 rows) -SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07'; +SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07-07'; Seven ---------------- 07:07:00-08 @@ -47,12 +47,12 @@ SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07'; 23:59:59.99-07 (7 rows) -SELECT f1 AS "None" FROM TIMETZ_TBL WHERE f1 < '00:00'; +SELECT f1 AS "None" FROM TIMETZ_TBL WHERE f1 < '00:00-07'; None ------ (0 rows) -SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00'; +SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00-07'; Ten ---------------- 00:01:00-07 diff --git a/src/test/regress/sql/timetz.sql b/src/test/regress/sql/timetz.sql index a842827059..24f34cb31a 100644 --- a/src/test/regress/sql/timetz.sql +++ b/src/test/regress/sql/timetz.sql @@ -17,13 +17,13 @@ INSERT INTO TIMETZ_TBL VALUES ('11:59:59.99 PM PDT'); SELECT f1 AS "Time TZ" FROM TIMETZ_TBL; -SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07'; +SELECT f1 AS "Three" FROM TIMETZ_TBL WHERE f1 < '05:06:07-07'; -SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07'; +SELECT f1 AS "Seven" FROM TIMETZ_TBL WHERE f1 > '05:06:07-07'; -SELECT f1 AS "None" FROM TIMETZ_TBL WHERE f1 < '00:00'; +SELECT f1 AS "None" FROM TIMETZ_TBL WHERE f1 < '00:00-07'; -SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00'; +SELECT f1 AS "Ten" FROM TIMETZ_TBL WHERE f1 >= '00:00-07'; -- -- TIME simple math