补充Oracle测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@889 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-20 10:46:43 +00:00
parent d994ab09d2
commit af91adefa5
2 changed files with 68 additions and 10 deletions
@@ -423,5 +423,23 @@ public class MultiDataSourceStatement extends WrapperAdapter implements Statemen
public boolean isPoolable() throws SQLException {
return false;
}
@SuppressWarnings("unchecked")
@Override
public <T> T unwrap(Class<T> iface) throws SQLException {
if (iface == null) {
return null;
}
if (iface.isInstance(this)) {
return (T) this;
}
if (stmt != null) {
return stmt.unwrap(iface);
}
return null;
}
}