It appears that recent versions of mysql connector
ResultSet.getObject returns different Java types for INT columns:
- mysql-connector-java-3.0.7-stable returns java.lang.Integer
- mysql-connector-java-3.0.8-stable returns java.lang.Long
The mysql 4.0.12 manual states that an INT column is 4 bytes with a
range of -2147483648 to 2147483647. If so, then java.lang.Long is
overkill and java.lang.Integer seems more appropriate.
Will future versions of ResultSet.getObject continue to return
java.lang.Long for INT columns or will it be changed to return
java.lang.Integer as in version 3.0.7?
Thanks,
Jeff
=====
Jeff Miller
j_e_f_f_m_i_l_l_e_r@stripped
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com