提交 a9905aa0 authored 作者: Thomas Mueller's avatar Thomas Mueller

For Windows, database URLs of the form "jdbc:h2:/test" where considered relative…

For Windows, database URLs of the form "jdbc:h2:/test" where considered relative and did not work unless the system property "h2.implicitRelativePath" was used.
上级 5d667744
...@@ -18,9 +18,11 @@ Change Log ...@@ -18,9 +18,11 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Follow JDBC specification on Procedures MetaData, use P0 as <ul><li>For Windows, database URLs of the form "jdbc:h2:/test" where considered
relative and did not work unless the system property "h2.implicitRelativePath" was used.
</li><li>Follow JDBC specification on Procedures MetaData, use P0 as
return type of procedure. return type of procedure.
</li><li>Issue 531: IDENTITY ignored for added column </li><li>Issue 531: IDENTITY ignored for added column.
</li></ul> </li></ul>
<h2>Version 1.4.178 Beta (2014-05-02)</h2> <h2>Version 1.4.178 Beta (2014-05-02)</h2>
......
...@@ -386,9 +386,14 @@ public class ConnectionInfo implements Cloneable { ...@@ -386,9 +386,14 @@ public class ConnectionInfo implements Cloneable {
if (!SysProperties.IMPLICIT_RELATIVE_PATH) { if (!SysProperties.IMPLICIT_RELATIVE_PATH) {
if (!FileUtils.isAbsolute(name)) { if (!FileUtils.isAbsolute(name)) {
if (name.indexOf("./") < 0 && if (name.indexOf("./") < 0 &&
name.indexOf(".\\") < 0) { name.indexOf(".\\") < 0 &&
name.indexOf(":/") < 0 &&
name.indexOf(":\\") < 0) {
// the name could start with "./", or // the name could start with "./", or
// it could start with a prefix such as "nio:./" // it could start with a prefix such as "nio:./"
// for Windows, the path "\test" is not considered
// absolute as the drive letter is missing,
// but we consider it absolute
throw DbException.get( throw DbException.get(
ErrorCode.URL_RELATIVE_TO_CWD, ErrorCode.URL_RELATIVE_TO_CWD,
originalURL); originalURL);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论