Re: BUG #1073: JDBC "time with time zone" - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: BUG #1073: JDBC "time with time zone"
Date
Msg-id Pine.LNX.4.33.0402060824520.21608-100000@leary.csoft.net
Whole thread Raw
In response to BUG #1073: JDBC "time with time zone"  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
> Bug reference:      1073
> Logged by:          Bob Messenger
> Email address:      bob@cassiancapital.com
> Description:        JDBC "time with time zone"
>
> Details:
>
> create table a(b time with time zone);
>
> insert into a values ('00:00:00');
>
>         System.out.println(rs.getTimestamp(1));
>
> Exception in thread "main" org.postgresql.util.PSQLException: Bad Timestamp
> Format at 2 in 00:00:00+00

I have confirmed this bug.  getTimestamp handles neither time nor timetz,
getTime also does not handle timetz.  The fix for this is a little
complicated as the date/time/timestamp parsing is kind of messy, but I
will try to have a patch for this sometime this weekend.

Kris Jurka

pgsql-bugs by date:

Previous
From: Achilleus Mantzios
Date:
Subject: Re: IN does not negate, exists does
Next
From: Pavel Stehule
Date:
Subject: plperl problem