Re: using Date and setObject()
От | Thomas O'Dowd |
---|---|
Тема | Re: using Date and setObject() |
Дата | |
Msg-id | 20020418083715.D1591@beast.uwillsee.com обсуждение исходный текст |
Ответ на | using Date and setObject() (Leandro Rodrigo Saad Cruz <leandro@ibnetwork.com.br>) |
Ответы |
Re: using Date and setObject()
|
Список | 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 по дате отправления: