From 28d4acb81b54d4821a1a33ce711333b1ceece632 Mon Sep 17 00:00:00 2001 From: justbk <249396768@qq.com> Date: Thu, 22 Jul 2021 21:29:59 +0800 Subject: [PATCH] implements PgConnection isWrapperFor interface --- pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java b/pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java index d2b7950..2111def 100644 --- a/pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java +++ b/pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java @@ -1652,7 +1652,7 @@ public class PgConnection implements BaseConnection { @Override public boolean isWrapperFor(Class iface) throws SQLException { checkClosed(); - throw org.postgresql.Driver.notImplemented(this.getClass(), "isWrapperFor(Class)"); + return iface.isAssignableFrom(getClass()); } @Override