Skip site navigation (1) Skip section navigation (2)

Re: using Date and setObject()

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: (view raw, whole thread or download thread mbox)
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.


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)
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?

Thomas O'Dowd. - Nooping -
tom(at)nooper(dot)com - Testing -

In response to


pgsql-jdbc by date

Next:From: Joe ShevlandDate: 2002-04-18 00:37:37
Subject: Re: BLOB performance test FYI
Previous:From: Anders BengtssonDate: 2002-04-17 23:07:12
Subject: Re: BLOB performance test FYI

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group