You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/11/20 13:55:41 UTC

[iotdb] branch master updated: add class for name to load IoTDB JDBC Driver(#2082)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new e088c11  add class for name to load IoTDB JDBC Driver(#2082)
e088c11 is described below

commit e088c11e8776e0fb1b24243768b287db665a8052
Author: Haimei Guo <68...@users.noreply.github.com>
AuthorDate: Fri Nov 20 21:55:27 2020 +0800

    add class for name to load IoTDB JDBC Driver(#2082)
---
 .../test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java
index be8bbf8..6f1d8c5 100644
--- a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java
+++ b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java
@@ -594,7 +594,8 @@ public class IoTDBSimpleQueryIT {
   }
 
   @Test
-  public void testUseSameStatement() throws SQLException {
+  public void testUseSameStatement() throws SQLException, ClassNotFoundException {
+    Class.forName(Config.JDBC_DRIVER_NAME);
     try (Connection connection = DriverManager
         .getConnection(Config.IOTDB_URL_PREFIX + "127.0.0.1:6667/", "root", "root");
         Statement statement = connection.createStatement()) {