Re: ResultSet.getDate failure with timestamp column

From: Barry Lind <barry(at)xythos(dot)com>
To: Daniel Germain <daniel(dot)germain(at)gipsynet(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: ResultSet.getDate failure with timestamp column
Date: 2001-11-09 03:49:35
Message-ID: 3BEB524F.1070705@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Daniel,

You are correct. Version 1.29 backed out the previous fix. I will fix
this when I get a chance (unless you want to submit a patch and save me
some time?).

thanks,
--Barry

Daniel Germain wrote:

> Hi,
>
> I'm trying to migrate an existing application to postgresql
> that uses generated code for accessing the database layer.
>
> I search the mailing list and found other references to that problem
> which seems to have been fixed in Revision 1.26 of ResultSet.java
> and seems to be removed in Revision 1.29
>
> Here is the stack trace with the DevelopmentDriver 7.2dev (built 2001-10-31)
>
> java.lang.NumberFormatException: 04 00:00:00-04
> at java.lang.Integer.parseInt(Integer.java:414)
> at java.lang.Integer.parseInt(Integer.java:454)
> at java.sql.Date.valueOf(Date.java:91)
> at org.postgresql.jdbc2.ResultSet.toDate(ResultSet.java:1557)
> at org.postgresql.jdbc2.ResultSet.getDate(ResultSet.java:372)
> at org.postgresql.jdbc2.ResultSet.getDate(ResultSet.java:607)
>
>
> Any good reason why it was removed? It seems to be contrary to the
> spec from what I read in this mailing list.
>
> Thanks
>
> Daniel
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2001-11-09 03:55:42 Re: JDBC Connection
Previous Message Barry Lind 2001-11-09 03:46:36 Re: MD5-based passwords