Re: JDBC Timestamp problem

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Antonio Fiol <fiol(at)w3ping(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC Timestamp problem
Date: 2001-02-22 17:06:38
Message-ID: 982861598.3a95471e36517@webmail.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Quoting Antonio Fiol <fiol(at)w3ping(dot)com>:

> Hello,
>
> I have an application that worked well woth Postgresql 6.5.
>
> Now I am on 7.0, and I get this exception when I execute an
> rs.getTimestamp("reftime"):
>
> Bad Timestamp Format at 0 in 1970-01-01 01:26:56.99+01
> at
> org.postgresql.jdbc1.ResultSet.getTimestamp(ResultSet.java:445)
> at
> org.postgresql.jdbc1.ResultSet.getTimestamp(ResultSet.java:587)
>
> Any idea of what it might be ?

Yes, there's been a lot of problems with timestamps, mainly where it was
getting confused with timezone/millisecond variations. 99% of these have been
fixed in the 7.1 driver.

(I say 99% as there is bound to be a senario we've missed out ;-) )

Peter

--
Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Antonio Fiol 2001-02-22 17:10:52 [Fwd: JDBC Timestamp problem]
Previous Message Jeff Hoffmann 2001-02-22 17:04:58 Re: JDBC Timestamp problem