From a33fe5bc8129a26d29da1cf431fbe2db43029125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=93=81?= Date: Wed, 28 Aug 2019 00:43:57 +0800 Subject: [PATCH] support JDK 1.7 features --- .../java/com/alibaba/druid/pool/DruidPooledConnection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java b/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java index 6c517eddba..56f55c60ae 100644 --- a/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java +++ b/src/main/java/com/alibaba/druid/pool/DruidPooledConnection.java @@ -1193,15 +1193,15 @@ public class DruidPooledConnection extends PoolableWrapper implements javax.sql. } public void abort(Executor executor) throws SQLException { - throw new SQLFeatureNotSupportedException(); + conn.abort(executor); } public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException { - throw new SQLFeatureNotSupportedException(); + conn.setNetworkTimeout(executor, milliseconds); } public int getNetworkTimeout() throws SQLException { - throw new SQLFeatureNotSupportedException(); + return conn.getNetworkTimeout(); } final void beforeExecute() {