From: | "Harry Hehl" <harry(dot)hehl(at)diskstream(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #2661: select time with time zone not converting |
Date: | 2006-09-28 16:54:53 |
Message-ID: | 200609281654.k8SGsrPs064725@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 2661
Logged by: Harry Hehl
Email address: harry(dot)hehl(at)diskstream(dot)com
PostgreSQL version: 8.1.3
Operating system: Linux
Description: select time with time zone not converting
Details:
The "select timestamp with time zone" is working as expected converting the
timestamp to the local time zone.
"select time with time zone" returns the same timezone.
Example:
CREATE TABLE test
(
mytime TIME (6) WITH TIME ZONE,
mytimestamp TIMESTAMP (6) WITH TIME ZONE
);
SET time zone -5;
INSERT INTO test VALUES ('00:00:00', '2006-02-01 00:00:00');
select * from test where mytimestamp = timestamp with time zone '2006-02-01
05:00:00-00';
-- returns inserted row.
select * from test where mytime = time with time zone '05:00:00-00';
-- nothing returned.
select timestamp with time zone '2006-02-01 05:00:00-00';
-- timestamptz
------------------------
-- 2006-02-01 00:00:00-05
--(1 row)
select time with time zone '05:00:00-00';
-- timetz
-------------
-- 05:00:00+00 This should be '00:00:00-05'
--(1 row)
From | Date | Subject | |
---|---|---|---|
Next Message | Harry Hehl | 2006-09-28 19:40:55 | BUG #2662: pg_dump out cannot be retored |
Previous Message | Dave Page | 2006-09-28 15:11:40 | Re: BUG #2644: pgadmin III foreign key |