mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-27 00:54:49 +08:00
fix dm function bug
This commit is contained in:
@ -78,13 +78,16 @@ public class IDriverManager {
|
||||
if (url == null) {
|
||||
throw new SQLException("The url cannot be null", "08001");
|
||||
}
|
||||
SQLException reason = null;
|
||||
DriverEntry driverEntry = DRIVER_ENTRY_MAP.get(driver.getJdbcDriver());
|
||||
if (driverEntry == null) {
|
||||
driverEntry = getJDBCDriver(driver);
|
||||
}
|
||||
try {
|
||||
return driverEntry.getDriver().connect(url, info);
|
||||
Connection connection = driverEntry.getDriver().connect(url, info);
|
||||
if(connection == null){
|
||||
throw new ConnectionException("driverEntry.getDriver().connect return null",null);
|
||||
}
|
||||
return connection;
|
||||
} catch (SQLException var7) {
|
||||
Connection con = tryConnectionAgain(driverEntry, url, info);
|
||||
if (con != null) {
|
||||
|
Reference in New Issue
Block a user