// Since 1.4 implements interfaces that became available in JDBC 3.0,
// let's warn the user if the driver doesn't support DatabaseMetaData
// methods that were added in JDBC 2.1 and JDBC 3.0 specifications.
SQLDatabaseMetaData md = _conn.getSQLMetaData();
try {
md.supportsResultSetType(ResultSet.TYPE_FORWARD_ONLY);
} catch (Throwable e) {
driverIs21Compliant = false;
}
if (!driverIs21Compliant) {
// i18n[Session.driverCompliance=The driver being used for alias ''{0}'' is not JDBC 2.1 compliant.\nYou should consider getting a more recent version of this driver]
String msg =
s_stringMgr.getString("Session.driverCompliance", _alias.getName());
// i18n[Session.driverComplianceTitle=JRE/JDBC Version Mismatch]
String title =
s_stringMgr.getString("Session.driverComplianceTitle");
showMessageDialog(msg, title, JOptionPane.WARNING_MESSAGE);
s_log.info(msg);
return;
}
boolean driverIs30Compliant = true;
try {
md.supportsSavepoints();
} catch (Throwable e) {
if (s_log.isDebugEnabled()) {
s_log.debug(e);
}
driverIs30Compliant = false;