mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Remove daylight-savings-time-dependent tests of 'time with time zone'
datatype. Perhaps someday we can figure out a way of getting reproducible results from testing this type, but for now ...
This commit is contained in:
@ -119,12 +119,6 @@ SELECT CAST(time with time zone '01:02-08' AS interval) AS "+00:01";
|
|||||||
ERROR: Cannot cast type 'timetz' to 'interval'
|
ERROR: Cannot cast type 'timetz' to 'interval'
|
||||||
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
||||||
ERROR: Cannot cast type 'interval' to 'timetz'
|
ERROR: Cannot cast type 'interval' to 'timetz'
|
||||||
SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
|
|
||||||
03:31:00-08
|
|
||||||
-------------
|
|
||||||
03:31:00-08
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
||||||
23:29:00-08
|
23:29:00-08
|
||||||
-------------
|
-------------
|
||||||
@ -137,12 +131,10 @@ SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08";
|
|||||||
14:31:00-08
|
14:31:00-08
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
|
-- These two tests cannot be used because they default to current timezone,
|
||||||
07:31:00-08
|
-- which may be either -08 or -07 depending on the time of year.
|
||||||
-------------
|
-- SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
|
||||||
07:31:00-08
|
-- SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
||||||
ERROR: Unable to identify an operator '-' for types 'interval' and 'timetz'
|
ERROR: Unable to identify an operator '-' for types 'interval' and 'timetz'
|
||||||
You will have to retype this query using an explicit cast
|
You will have to retype this query using an explicit cast
|
||||||
|
@ -119,12 +119,6 @@ SELECT CAST(time with time zone '01:02-08' AS interval) AS "+00:01";
|
|||||||
ERROR: Cannot cast type 'timetz' to 'interval'
|
ERROR: Cannot cast type 'timetz' to 'interval'
|
||||||
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
||||||
ERROR: Cannot cast type 'interval' to 'timetz'
|
ERROR: Cannot cast type 'interval' to 'timetz'
|
||||||
SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
|
|
||||||
03:31:00-08
|
|
||||||
-------------
|
|
||||||
03:31:00-08
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
||||||
23:29:00-08
|
23:29:00-08
|
||||||
-------------
|
-------------
|
||||||
@ -137,12 +131,10 @@ SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08";
|
|||||||
14:31:00-08
|
14:31:00-08
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
|
-- These two tests cannot be used because they default to current timezone,
|
||||||
07:31:00-08
|
-- which may be either -08 or -07 depending on the time of year.
|
||||||
-------------
|
-- SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
|
||||||
07:31:00-08
|
-- SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
||||||
ERROR: Unable to identify an operator '-' for types 'interval' and 'timetz'
|
ERROR: Unable to identify an operator '-' for types 'interval' and 'timetz'
|
||||||
You will have to retype this query using an explicit cast
|
You will have to retype this query using an explicit cast
|
||||||
|
@ -119,12 +119,6 @@ SELECT CAST(time with time zone '01:02-08' AS interval) AS "+00:01";
|
|||||||
ERROR: Cannot cast type 'timetz' to 'interval'
|
ERROR: Cannot cast type 'timetz' to 'interval'
|
||||||
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
||||||
ERROR: Cannot cast type 'interval' to 'timetz'
|
ERROR: Cannot cast type 'interval' to 'timetz'
|
||||||
SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
|
|
||||||
03:31:00-08
|
|
||||||
-------------
|
|
||||||
03:31:00-08
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
||||||
23:29:00-08
|
23:29:00-08
|
||||||
-------------
|
-------------
|
||||||
@ -137,12 +131,10 @@ SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08";
|
|||||||
14:31:00-08
|
14:31:00-08
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
|
-- These two tests cannot be used because they default to current timezone,
|
||||||
07:31:00-08
|
-- which may be either -08 or -07 depending on the time of year.
|
||||||
-------------
|
-- SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
|
||||||
07:31:00-08
|
-- SELECT time with time zone '03:30' + interval '1 month 04:01' AS "07:31:00-08";
|
||||||
(1 row)
|
|
||||||
|
|
||||||
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
||||||
ERROR: Unable to identify an operator '-' for types 'interval' and 'timetz'
|
ERROR: Unable to identify an operator '-' for types 'interval' and 'timetz'
|
||||||
You will have to retype this query using an explicit cast
|
You will have to retype this query using an explicit cast
|
||||||
|
@ -54,13 +54,16 @@ SELECT CAST(time with time zone '01:02-08' AS interval) AS "+00:01";
|
|||||||
|
|
||||||
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
SELECT CAST(interval '02:03' AS time with time zone) AS "02:03:00-08";
|
||||||
|
|
||||||
SELECT time with time zone '01:30' + interval '02:01' AS "03:31:00-08";
|
|
||||||
|
|
||||||
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
SELECT time with time zone '01:30-08' - interval '02:01' AS "23:29:00-08";
|
||||||
|
|
||||||
SELECT time with time zone '02:30-08' + interval '36:01' AS "14:31:00-08";
|
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";
|
-- These two tests cannot be used because they default to current timezone,
|
||||||
|
-- which may be either -08 or -07 depending on the time of year.
|
||||||
|
|
||||||
|
-- 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";
|
||||||
|
|
||||||
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
SELECT interval '04:30' - time with time zone '01:02' AS "+03:28";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user