On Wed, 14 Feb 2007, Floyd Shackelford wrote:
> the following generates a number format exception:
> the following works:
> i prefer to use the former.
I'm not sure that's actually a bug as there are many, many possible date
formats and the JDBC spec doesn't specify what conversions must be
supplied. Do you use this same code on other databases?
Using a SimpleDateFormat object to convert from String to Date yourself is
the most portable and guaranteed correct method.
In response to
pgsql-jdbc by date
|Next:||From: Jeffrey Cox||Date: 2007-02-14 19:40:01|
|Subject: Re: getProcedureColumns|
|Previous:||From: Chris Gamache||Date: 2007-02-14 19:29:06|
|Subject: Re: stringtype=unspecified problem|