This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
new 9242f9bfa Handle the case where the mysql link starts with JDBC (#3796)
9242f9bfa is described below
commit 9242f9bfa64478f1c9cb8e2a45154e27885a3c28
Author: aiceflower <[email protected]>
AuthorDate: Thu Nov 10 16:24:01 2022 +0800
Handle the case where the mysql link starts with JDBC (#3796)
---
.../apache/linkis/manager/engineplugin/jdbc/utils/JdbcParamUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/linkis-engineconn-plugins/jdbc/src/main/java/org/apache/linkis/manager/engineplugin/jdbc/utils/JdbcParamUtils.java
b/linkis-engineconn-plugins/jdbc/src/main/java/org/apache/linkis/manager/engineplugin/jdbc/utils/JdbcParamUtils.java
index 57feef6d8..93e4b60a1 100644
---
a/linkis-engineconn-plugins/jdbc/src/main/java/org/apache/linkis/manager/engineplugin/jdbc/utils/JdbcParamUtils.java
+++
b/linkis-engineconn-plugins/jdbc/src/main/java/org/apache/linkis/manager/engineplugin/jdbc/utils/JdbcParamUtils.java
@@ -64,8 +64,8 @@ public class JdbcParamUtils {
}
public static String filterJdbcUrl(String url) {
- // temporarily filter only mysql jdbc url.
- if (!url.startsWith(JDBC_MYSQL_PROTOCOL)) {
+ // temporarily filter only mysql jdbc url. & Handles cases that start with
JDBC
+ if (!url.startsWith(JDBC_MYSQL_PROTOCOL) &&
!url.toLowerCase().contains(JDBC_MYSQL_PROTOCOL)) {
return url;
}
if (url.contains(SENSITIVE_PARAM)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]