bug report: preparedStatement.setObject(indx,"2004-August-15",java.sql.Types.DATE) generates number format exception - Mailing list pgsql-jdbc

From Floyd Shackelford
Subject bug report: preparedStatement.setObject(indx,"2004-August-15",java.sql.Types.DATE) generates number format exception
Date
Msg-id 45D35D00.6020000@fwshackelford.com
Whole thread Raw
Responses Re: bug report: preparedStatement.setObject(indx,"2004-August-15",java.sql.Types.DATE) generates number format exception
List pgsql-jdbc

bug report:

postgresql: 8.2.0
jdbc: postgresql-8.2-504.jdbc3.jar

the following generates a number format exception:
  preparedStatement.setObject(indx,"2004-August-15",java.sql.Types.DATE)

the following works:
  preparedStatement.setObject(indx,"2004-08-15",java.sql.Types.DATE)

i prefer to use the former.

--

Soli Deo gloria,

Floyd Shackelford


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?
Next
From: "Chris Gamache"
Date:
Subject: Re: stringtype=unspecified problem