code refactor

This commit is contained in:
高铁
2020-10-05 18:15:14 +08:00
parent 2bc1f9bb80
commit e6a7f9a51c
2 changed files with 1 additions and 2 deletions
@@ -28,7 +28,6 @@ import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.sql.SQLXML;
import java.util.Calendar;
@@ -1191,7 +1191,7 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql.
}
public void setSchema(String schema) throws SQLException {
if (JdbcUtils.isMysqlDbType(holder.getDataSource().getDbType())) {
if (JdbcUtils.isMysqlDbType(holder.dataSource.getDbType())) {
if (holder.initSchema == null) {
holder.initSchema = conn.getSchema();
}