You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2018/06/12 05:12:43 UTC
[incubator-skywalking] branch master updated: fix lowerCaseUrl
(#1342)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new cab4244 fix lowerCaseUrl (#1342)
cab4244 is described below
commit cab42447a7dfdb4c76db33d3eb5732f958f822aa
Author: lican <li...@foxmail.com>
AuthorDate: Tue Jun 12 13:12:28 2018 +0800
fix lowerCaseUrl (#1342)
---
.../apm/plugin/jdbc/connectionurl/parser/URLParser.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/connectionurl/parser/URLParser.java b/apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/connectionurl/parser/URLParser.java
index 7cfe12c..b978121 100644
--- a/apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/connectionurl/parser/URLParser.java
+++ b/apm-sniffer/apm-sdk-plugin/jdbc-commons/src/main/java/org/apache/skywalking/apm/plugin/jdbc/connectionurl/parser/URLParser.java
@@ -36,13 +36,14 @@ public class URLParser {
public static ConnectionInfo parser(String url) {
ConnectionURLParser parser = null;
- if (url.startsWith(MYSQL_JDBC_URL_PREFIX)) {
+ String lowerCaseUrl = url.toLowerCase();
+ if (lowerCaseUrl.startsWith(MYSQL_JDBC_URL_PREFIX)) {
parser = new MysqlURLParser(url);
- } else if (url.startsWith(ORACLE_JDBC_URL_PREFIX)) {
+ } else if (lowerCaseUrl.startsWith(ORACLE_JDBC_URL_PREFIX)) {
parser = new OracleURLParser(url);
- } else if (url.startsWith(H2_JDBC_URL_PREFIX)) {
+ } else if (lowerCaseUrl.startsWith(H2_JDBC_URL_PREFIX)) {
parser = new H2URLParser(url);
- } else if (url.startsWith(POSTGRESQL_JDBC_URL_PREFIX)) {
+ } else if (lowerCaseUrl.startsWith(POSTGRESQL_JDBC_URL_PREFIX)) {
parser = new PostgreSQLURLParser(url);
}
return parser.parse();
--
To stop receiving notification emails like this one, please contact
wusheng@apache.org.