Validation query is limited for Oracle, we have to use the driver oracle.jdbc.driver.OracleDriver but it also exists the driver oracle.jdbc.OracleDriver.
Is it possible to modify _getValidationQuery(driver) method like this or something else ?
private String _getValidationQuery(String driver) { if (driver.endsWith("OracleDriver")) { return "SELECT 1 FROM DUAL"; } else if ("org.apache.derby.jdbc.EmbeddedDriver".equals(driver)) { return "SELECT 1 FROM SYS.SYSTABLES"; } else { return "SELECT 1"; } }
- Duplique
-
RUNTIME-844 Can't use oracle.jdbc.OracleDriver with DataSourceExtensionPoint
- Closed