Bug #55217 DatabaseMetaData.getJDBCMajorVersion() returns 3 instead of 4
Submitted: 13 Jul 2010 15:17 Modified: 23 Jul 2010 8:01
Reporter: Thomas Weber Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S2 (Serious)
Version:5.1.13 OS:Any
Assigned to: CPU Architecture:Any

[13 Jul 2010 15:17] Thomas Weber
Description:
According to your documentation the 5.1 series of Connector/J is supposed to be JDBC 4 compliant. So DatabaseMetaData.getJDBCMajorVersion() should return 4 instead of 3.

How to repeat:
Register the JDBC driver and access the JDBC major version. The version is hard coded into DatabaseMetaData.getJDBCMajorVersion().

Suggested fix:
change the hard coded "3" to a "4".
[21 Jul 2010 6:39] Tonci Grgin
Thanks Thomas, verified as described.
[23 Jul 2010 8:01] Tonci Grgin
Pushed into main tree.