optimized for oracle

This commit is contained in:
wenshao
2011-12-30 13:52:50 +08:00
parent 8c4471c4c9
commit 3948a5ede6
10 changed files with 214 additions and 22 deletions
@@ -290,6 +290,10 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
if ("oracle".equals(this.dbType)) {
isOracle = true;
if (driver.getMajorVersion() < 10) {
throw new SQLException("not support oracle driver " + driver.getMajorVersion() + "." + driver.getMinorVersion());
}
}
String realDriverClassName = driver.getClass().getName();