Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> JDBC: Meta data: Invalid column type for DATE
In JDBC on Oracle tables with columns of type DATE:
ResultSetMetaData.getColumnType(colNum) returns 91 which is wrong. DatabaseMetaData.getColumns() tells 93 which is right.
Both ResultSetMetaData.getColumnTypeName(colNum) and DatabaseMetaData.getColumns() tell "DATE" which is wrong. The right type name for an Oracle DATE column would be "TIMESTAMP". Received on Sat Mar 06 2004 - 11:20:25 CST