提交 0844c811 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 eb9fdb1a
...@@ -74,15 +74,15 @@ public class ConnectionInfo { ...@@ -74,15 +74,15 @@ public class ConnectionInfo {
/** /**
* Create a connection info object. * Create a connection info object.
* *
* @param url the database URL (must start with jdbc:h2:) * @param u the database URL (must start with jdbc:h2:)
* @param info the connection properties * @param info the connection properties
*/ */
public ConnectionInfo(String url, Properties info) throws SQLException { public ConnectionInfo(String u, Properties info) throws SQLException {
this.originalURL = url; this.originalURL = u;
if (!url.startsWith(Constants.START_URL)) { if (!u.startsWith(Constants.START_URL)) {
throw Message.getInvalidValueException(url, "url"); throw Message.getInvalidValueException(u, "url");
} }
this.url = url; this.url = u;
readProperties(info); readProperties(info);
readSettingsFromURL(); readSettingsFromURL();
setUserName(removeProperty("USER", "")); setUserName(removeProperty("USER", ""));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论