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: 20020418083715.D1591@beast.uwillsee.com (view raw or flat)
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

In response to

Responses

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-2014 The PostgreSQL Global Development Group