From: | Thomas O'Dowd <tom(at)nooper(dot)com> |
---|---|
To: | Leandro Rodrigo Saad Cruz <leandro(at)ibnetwork(dot)com(dot)br> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: using Date and setObject() |
Date: | 2002-04-17 23:37:15 |
Message-ID: | 20020418083715.D1591@beast.uwillsee.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)nooper(dot)com - Testing - http://nooper.co.jp/labs
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Shevland | 2002-04-18 00:37:37 | Re: BLOB performance test FYI |
Previous Message | Anders Bengtsson | 2002-04-17 23:07:12 | Re: BLOB performance test FYI |