SmallInts and Integers are not coming out in Oracle as I would think?
Lets say I have:
On MySQL, MSSQL, etc, the column types are what I would expect. In Oracle, SMALLINT is mapped to Number and INT is mapped to INT. Both Number and INT are the same as Number(38) in Oracle I think. This ends up making a SmallInt and a Int bigger than the BIGINT which is Number(19,0). Is there a generic way to specify a SmallInt when creating columns that will come out to a SmallInt on each DB?
Hi, the last post is a long time ago. But what about the smallint data type? It is still a NUMBER(38,0) in oracle. If I follow the link above, then it should be NUMBER(5,0). Is it planned to add this too? thanks, Oliver
My testing (w/ 2.0.5) still shows that java.sql.Types.INTEGER (or INT) results in a NUMBER(38,0). If it makes a difference, my testing was with modifying the data type (modifyDataType) rather than creating a column.