using Date and setObject()

From: Leandro Rodrigo Saad Cruz <leandro(at)ibnetwork(dot)com(dot)br>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: using Date and setObject()
Date: 2002-04-17 17:53:43
Message-ID: 1019066023.493.97.camel@ns2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi all, I'm working an a persistence layer API above JDBC
that uses setObject() in prepare statements. the problem is :
I get a ClassCastException when using setObject(java.util.Date).
Can I use setObject(java.util.Date) or I **must** use
setDate(java.util.Date) ??

--
Leandro Rodrigo Saad Cruz
IT - Inter Business Tecnologia e Servicos (IB)
http://www.ibnetwork.com.br

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joe Shevland 2002-04-17 21:35:57 Re: BLOB performance test FYI
Previous Message Barry Lind 2002-04-17 16:56:43 Re: Meaningful Exception handling