mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
code refactor
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user