diff --git a/tests/examples/JDBC/JDBCDemo/pom.xml b/tests/examples/JDBC/JDBCDemo/pom.xml index 46729b851244cb767f16f69b03c1235e69bf21bc..d075fc8f2ad480535075b79efc15c55d9bb799a5 100644 --- a/tests/examples/JDBC/JDBCDemo/pom.xml +++ b/tests/examples/JDBC/JDBCDemo/pom.xml @@ -48,4 +48,12 @@ + + + com.taosdata.jdbc + taos-jdbcdriver + 2.0.15 + + + diff --git a/tests/examples/JDBC/JDBCDemo/src/main/java/com/taosdata/example/JDBCDemo.java b/tests/examples/JDBC/JDBCDemo/src/main/java/com/taosdata/example/JDBCDemo.java index b5012c215fa4b4ab16d8ff5252a9518e2998e39a..791ace6d7d559fb0f56abc774195d933555ff8f8 100644 --- a/tests/examples/JDBC/JDBCDemo/src/main/java/com/taosdata/example/JDBCDemo.java +++ b/tests/examples/JDBC/JDBCDemo/src/main/java/com/taosdata/example/JDBCDemo.java @@ -21,7 +21,7 @@ public class JDBCDemo { } } - if (host == null || driverType == null) { + if (host == null) { printHelp(); }