From 8b6b8192dc14ea42e16e9d45f08610b88aa41da4 Mon Sep 17 00:00:00 2001 From: zyyang Date: Wed, 3 Feb 2021 19:36:10 +0800 Subject: [PATCH] change --- .../com/taosdata/jdbc/AbstractStatement.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/AbstractStatement.java b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/AbstractStatement.java index acbfc66c94..4aa1ff8690 100644 --- a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/AbstractStatement.java +++ b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/AbstractStatement.java @@ -246,17 +246,17 @@ public abstract class AbstractStatement implements Statement { return this.closeOnCompletion; } -// @Override -// public T unwrap(Class iface) throws SQLException { -// try { -// return iface.cast(this); -// } catch (ClassCastException cce) { -// throw new SQLException("Unable to unwrap to " + iface.toString()); -// } -// } -// -// @Override -// public boolean isWrapperFor(Class iface) throws SQLException { -// return iface.isInstance(this); -// } + @Override + public T unwrap(Class iface) throws SQLException { + try { + return iface.cast(this); + } catch (ClassCastException cce) { + throw new SQLException("Unable to unwrap to " + iface.toString()); + } + } + + @Override + public boolean isWrapperFor(Class iface) throws SQLException { + return iface.isInstance(this); + } } -- GitLab