未验证 提交 5cd9deda 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2026 from sunguofeng/patch-1

Update TSDBDriver.java
...@@ -188,7 +188,7 @@ public class TSDBDriver implements java.sql.Driver { ...@@ -188,7 +188,7 @@ public class TSDBDriver implements java.sql.Driver {
} }
public boolean acceptsURL(String url) throws SQLException { public boolean acceptsURL(String url) throws SQLException {
return true; return StringUtils.isNotBlank(url) && url.startsWith(URL_PREFIX);
} }
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException {
...@@ -355,4 +355,4 @@ public class TSDBDriver implements java.sql.Driver { ...@@ -355,4 +355,4 @@ public class TSDBDriver implements java.sql.Driver {
public String database(Properties props) { public String database(Properties props) {
return props.getProperty(PROPERTY_KEY_DBNAME); return props.getProperty(PROPERTY_KEY_DBNAME);
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册