Re: Bad Timestamp Format - Mailing list pgsql-jdbc

From Thomas O'Dowd
Subject Re: Bad Timestamp Format
Date
Msg-id 20020127004724.F8130@beast.uwillsee.com
Whole thread Raw
In response to Bad Timestamp Format  (Gunaseelan Nagarajan <gnagarajan@dkf.de>)
Responses Re: Bad Timestamp Format  ("G.Nagarajan" <gnagarajan@dkf.de>)
List pgsql-jdbc
Hi Nagarajan,

What driver version are you using? The latest drivers at least
should switch the database to return ISO datestyle timestamps
when it first gets a connection. The current driver code expects
to parse the ISO format which is why you are getting this exception
below. Are you changing the datestyle in your program? I'm unfamilar
with how to get postgres to return a timestamp in the short format without
the seconds which you have below. The ISO format usually returns...
1970-01-01 00:00:00 if without time zone is specified. Can you perhaps
provide sample code that reproduces the problem using the latest driver?

You can download the latest drivers here...

    http://jdbc.postgresql.org/download.html

Cheers,

Tom.

On Sat, Jan 26, 2002 at 02:33:15PM +0100, Gunaseelan Nagarajan wrote:
> hi,
> I get the following error while retrieving a datetime column using
> getTimestamp.
>
> Bad Timestamp Format at 12 in 1970-1-1 0:0;
>
>
> Bad Timestamp Format at 12 in 1970-1-1 0:0
>         at org.postgresql.jdbc2.ResultSet.getTimestamp(Unknown Source)
>         at org.postgresql.jdbc2.ResultSet.getTimestamp(Unknown Source)
>         at
> org.jboss.pool.jdbc.ResultSetInPool.getTimestamp(ResultSetInPool.java:734)
>
> regards,
> Nagarajan.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

--
Thomas O'Dowd. - Nooping - http://nooper.com
tom@nooper.com - Testing - http://nooper.co.jp/labs

pgsql-jdbc by date:

Previous
From: Gunaseelan Nagarajan
Date:
Subject: Bad Timestamp Format
Next
From: "G.Nagarajan"
Date:
Subject: Re: Bad Timestamp Format