diff --git a/src/connector/jdbc/pom.xml b/src/connector/jdbc/pom.xml index 97bcdbb38c08439b88002fb671d79069320e3739..9865fc7127b39debc965f6be9bad6e8485169416 100755 --- a/src/connector/jdbc/pom.xml +++ b/src/connector/jdbc/pom.xml @@ -79,6 +79,12 @@ 1.2.58 + + mysql + mysql-connector-java + 5.1.49 + + diff --git a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/rs/RestfulConnection.java b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/rs/RestfulConnection.java index ed77847484cc363cf0fd9ce7a313364d75043d9a..5260b780bd510edad6ef8ea9a481fa334cca50f6 100644 --- a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/rs/RestfulConnection.java +++ b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/rs/RestfulConnection.java @@ -411,7 +411,6 @@ public class RestfulConnection implements Connection { public void setSchema(String schema) throws SQLException { if (isClosed()) throw new SQLException(CONNECTION_IS_CLOSED); - synchronized (RestfulConnection.class) { this.database = schema; }