diff --git a/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java b/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java index ed181235ec..d3ec2f51ab 100644 --- a/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java +++ b/src/main/java/com/alibaba/druid/pool/DruidPooledCallableStatement.java @@ -1068,11 +1068,11 @@ public class DruidPooledCallableStatement extends DruidPooledPreparedStatement i } public T getObject(int parameterIndex, Class type) throws SQLException { - throw new SQLFeatureNotSupportedException(); + return stmt.getObject(parameterIndex, type); } public T getObject(String parameterName, Class type) throws SQLException { - throw new SQLFeatureNotSupportedException(); + return stmt.getObject(parameterName, type); } @SuppressWarnings("unchecked") diff --git a/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java b/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java index d2b3417064..d32b2e122c 100644 --- a/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java +++ b/src/main/java/com/alibaba/druid/pool/DruidPooledStatement.java @@ -879,10 +879,10 @@ public class DruidPooledStatement extends PoolableWrapper implements Statement { } public void closeOnCompletion() throws SQLException { - throw new SQLFeatureNotSupportedException(); + stmt.closeOnCompletion(); } public boolean isCloseOnCompletion() throws SQLException { - throw new SQLFeatureNotSupportedException(); + stmt.isCloseOnCompletion(); } } diff --git a/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java b/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java index 1f7dc00e74..51fd625cc4 100644 --- a/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java +++ b/src/main/java/com/alibaba/druid/proxy/jdbc/CallableStatementProxyImpl.java @@ -603,11 +603,11 @@ public class CallableStatementProxyImpl extends PreparedStatementProxyImpl imple } public T getObject(int parameterIndex, Class type) throws SQLException { - throw new SQLFeatureNotSupportedException(); + return statement.getObject(parameterIndex, type); } public T getObject(String parameterName, Class type) throws SQLException { - throw new SQLFeatureNotSupportedException(); + return statement.getObject(parameterName, type); } @SuppressWarnings("unchecked") diff --git a/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java b/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java index e4db5b1e86..726d00bfbf 100644 --- a/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java +++ b/src/main/java/com/alibaba/druid/proxy/jdbc/StatementProxyImpl.java @@ -503,11 +503,11 @@ public class StatementProxyImpl extends WrapperProxyImpl implements StatementPro } public void closeOnCompletion() throws SQLException { - throw new SQLFeatureNotSupportedException(); + statement.closeOnCompletion(); } public boolean isCloseOnCompletion() throws SQLException { - throw new SQLFeatureNotSupportedException(); + statement.isCloseOnCompletion(); } @Override