mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase & bug fixed
This commit is contained in:
@@ -56,10 +56,8 @@ public final class DruidConnectionHolder {
|
||||
private int underlyingHoldability;
|
||||
private int underlyingTransactionIsolation;
|
||||
private boolean underlyingAutoCommit;
|
||||
private final int modCount;
|
||||
|
||||
public DruidConnectionHolder(DruidAbstractDataSource dataSource, Connection conn) throws SQLException{
|
||||
this.modCount = dataSource.getModCount();
|
||||
|
||||
this.dataSource = dataSource;
|
||||
this.conn = conn;
|
||||
@@ -82,10 +80,6 @@ public final class DruidConnectionHolder {
|
||||
this.defaultReadOnly = underlyingReadOnly;
|
||||
}
|
||||
|
||||
public int getModCount() {
|
||||
return modCount;
|
||||
}
|
||||
|
||||
public boolean isUnderlyingReadOnly() {
|
||||
return underlyingReadOnly;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user