Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Oracle 10g returns DATE as java.sql.Date?
I noticed that Oracle 10g XE, with the ojdbc14.jar JDBC driver, returns
DATE columns as java.sql.Date valuess. That surprised me, because the
ResultSetMetaData claims the column's Java type is java.sql.Timestamp
-- which would make more sense since DATE columns contain date *and*
time information, just just date.
I seem to remember that Oracle 8i did return java.sql.Timestamp for
DATE columns.
Did they change this, or am I just misremembering? Is there a way to
get the driver to return java.sql.Timestamp?
Received on Wed Nov 09 2005 - 13:08:50 CST
![]() |
![]() |