-Oracle 11g
-Oracle thin driver
When a column is defined as NUMBER the getObject method on ResultSet will return a BigDecimal type. My question is, If we where to change the column definition to NUMBER(19,0) would the driver know to convert this to a Long when we called getObject?
I think no.
Here the document says the SQL data types DEC, DECIMAL, NUMBER, NUMERIC are mapped into java.math.BigDecimal.