未验证 提交 d3aaceed 编写于 作者: S sunguofeng 提交者: GitHub

Update TSDBDriver.java

多数据源下,driver驱动根据acceptsURL判断url使用合适的驱动,增加判断TAOS驱动
上级 dfbe9ace
...@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册