Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle Dates and Java Dates and selecting the former into the later

Re: Oracle Dates and Java Dates and selecting the former into the later

From: <mike.jones_at_xenicom.com>
Date: 2 Jun 2005 02:01:47 -0700
Message-ID: <1117702907.115517.274650@f14g2000cwb.googlegroups.com>


Good points, Liked the default date format idea (hadn't thought about that). Alas it makes no odds.

It appears to be to do with the Oracle drivers we are using, if we use

oracle.jdbc.driver.OracleDriver then "Select sysdate from dual" returns
a java.sql.timestamp.  However if we use
oracle.jdbc.xa.client.OracleXADataSource (Which we are) then we get
back a java.sql.date and that doesn't have a time element as per the standard.

Any ideas? I'm getting a bit lost...

Mike. Received on Thu Jun 02 2005 - 04:01:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US