github-code-scanning[bot] commented on code in PR #8432: URL: https://github.com/apache/iotdb/pull/8432#discussion_r1056466177
########## example/jdbc/src/main/java/org/apache/iotdb/JDBCExample.java: ########## @@ -26,50 +26,91 @@ import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; +import java.util.HashSet; +import java.util.Random; +import java.util.Set; public class JDBCExample { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("org.apache.iotdb.jdbc.IoTDBDriver"); try (Connection connection = - DriverManager.getConnection( - "jdbc:iotdb://127.0.0.1:6667?version=V_0_13", "root", "root"); + DriverManager.getConnection("jdbc:iotdb://127.0.0.1:6667", "root", "root"); Review Comment: ## Credentials should not be hard-coded <!--SONAR_ISSUE_KEY:AYU_w0hAEQh_Wttxqc5Y-->Revoke and change this password, as it is compromised. <p>See more on <a href="https://sonarcloud.io/project/issues?id=apache_incubator-iotdb&issues=AYU_w0hAEQh_Wttxqc5Y&open=AYU_w0hAEQh_Wttxqc5Y&pullRequest=8432">SonarCloud</a></p> [Show more details](https://github.com/apache/iotdb/security/code-scanning/101) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@iotdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org