Re: using Date and setObject() - Mailing list pgsql-jdbc

From Thomas O'Dowd
Subject Re: using Date and setObject()
Date
Msg-id 20020418083715.D1591@beast.uwillsee.com
Whole thread Raw
In response to using Date and setObject()  (Leandro Rodrigo Saad Cruz <leandro@ibnetwork.com.br>)
Responses Re: using Date and setObject()
List pgsql-jdbc
Never tried it but what about using setObject(java.sql.Date)
                                                   ^^^

The big difference between the objects of course is that the
java.sql.Date only holds the date part and not the time part.

Tom.

On Wed, Apr 17, 2002 at 02:53:43PM -0300, Leandro Rodrigo Saad Cruz wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

--
Thomas O'Dowd. - Nooping - http://nooper.com
tom@nooper.com - Testing - http://nooper.co.jp/labs

pgsql-jdbc by date:

Previous
From: Anders Bengtsson
Date:
Subject: Re: BLOB performance test FYI
Next
From: "Joe Shevland"
Date:
Subject: Re: BLOB performance test FYI