getJDBCMajorVersion
& getJDBCMinorVersion
You can interrogate your JDBC driver at runtime.
Retrieve a DatabaseMetaData
. Call the two methods to get the major and minor versions of the JDBC specification for which this driver claims support:
- DatabaseMetaData::getJDBCMajorVersion
- DatabaseMetaData::getJDBCMinorVersion
Keep in mind that a particular driver may not support every feature of that version of JDBC API.