It actually is required by JDBC. From Appendix B of the JDBC spec (Use of ResultSet getter Methods to Retrieve JDBC Data Types), calling ResultSet#getLong is required to handle the following underlying SQL types - TINYINT, SMALLINT, INTEGER, BIGINT, REAL, FLOAT, DOUBLE, DECIMAL, NUMERIC, BIT, BOOLEAN, CHAR, VARCHAR, LONGVARCHAR. |