mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase
This commit is contained in:
@@ -972,6 +972,10 @@ public class FilterChainImpl implements FilterChain {
|
||||
|
||||
Object obj = resultSet.getResultSetRaw().getObject(columnIndex);
|
||||
|
||||
if (obj instanceof ResultSet) {
|
||||
return wrap(resultSet.getStatementProxy(), (ResultSet) obj);
|
||||
}
|
||||
|
||||
if (obj instanceof Clob) {
|
||||
return wrap(resultSet.getStatementProxy().getConnectionProxy(), (Clob) obj);
|
||||
}
|
||||
@@ -987,6 +991,10 @@ public class FilterChainImpl implements FilterChain {
|
||||
|
||||
Object obj = resultSet.getResultSetRaw().getObject(columnLabel);
|
||||
|
||||
if (obj instanceof ResultSet) {
|
||||
return wrap(resultSet.getStatementProxy(), (ResultSet) obj);
|
||||
}
|
||||
|
||||
if (obj instanceof Clob) {
|
||||
return wrap(resultSet.getStatementProxy().getConnectionProxy(), (Clob) obj);
|
||||
}
|
||||
@@ -1640,6 +1648,10 @@ public class FilterChainImpl implements FilterChain {
|
||||
|
||||
Object obj = resultSet.getResultSetRaw().getObject(columnIndex, map);
|
||||
|
||||
if (obj instanceof ResultSet) {
|
||||
return wrap(resultSet.getStatementProxy(), (ResultSet) obj);
|
||||
}
|
||||
|
||||
if (obj instanceof Clob) {
|
||||
return wrap(resultSet.getStatementProxy().getConnectionProxy(), (Clob) obj);
|
||||
}
|
||||
@@ -1691,9 +1703,13 @@ public class FilterChainImpl implements FilterChain {
|
||||
if (this.pos < filterSize) {
|
||||
return nextFilter().resultSet_getObject(this, resultSet, columnLabel, map);
|
||||
}
|
||||
|
||||
|
||||
Object obj = resultSet.getResultSetRaw().getObject(columnLabel, map);
|
||||
|
||||
if (obj instanceof ResultSet) {
|
||||
return wrap(resultSet.getStatementProxy(), (ResultSet) obj);
|
||||
}
|
||||
|
||||
if (obj instanceof Clob) {
|
||||
return wrap(resultSet.getStatementProxy().getConnectionProxy(), (Clob) obj);
|
||||
}
|
||||
@@ -3416,7 +3432,7 @@ public class FilterChainImpl implements FilterChain {
|
||||
if (obj instanceof ResultSet) {
|
||||
return wrap(statement, (ResultSet) obj);
|
||||
}
|
||||
|
||||
|
||||
if (obj instanceof Clob) {
|
||||
return wrap(statement.getConnectionProxy(), (Clob) obj);
|
||||
}
|
||||
@@ -3436,7 +3452,7 @@ public class FilterChainImpl implements FilterChain {
|
||||
if (obj instanceof ResultSet) {
|
||||
return wrap(statement, (ResultSet) obj);
|
||||
}
|
||||
|
||||
|
||||
if (obj instanceof Clob) {
|
||||
return wrap(statement.getConnectionProxy(), (Clob) obj);
|
||||
}
|
||||
@@ -4458,7 +4474,7 @@ public class FilterChainImpl implements FilterChain {
|
||||
if (clob == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
if (clob instanceof NClob) {
|
||||
return wrap(connection, (NClob) clob);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user