提交 4b63906b authored 作者: Thomas Mueller's avatar Thomas Mueller

Support Windows

上级 d6e6a567
...@@ -384,12 +384,15 @@ public class ConnectionInfo implements Cloneable { ...@@ -384,12 +384,15 @@ public class ConnectionInfo implements Cloneable {
if (persistent) { if (persistent) {
if (nameNormalized == null) { if (nameNormalized == null) {
if (!SysProperties.IMPLICIT_RELATIVE_PATH) { if (!SysProperties.IMPLICIT_RELATIVE_PATH) {
if (!FileUtils.isAbsolute(name) && name.indexOf("./") < 0) { if (!FileUtils.isAbsolute(name)) {
// the name could start with "./", or if (name.indexOf("./") < 0 &&
// it could start with a prefix such as "nio:./" name.indexOf(".\\") < 0) {
throw DbException.get( // the name could start with "./", or
ErrorCode.URL_RELATIVE_TO_CWD, // it could start with a prefix such as "nio:./"
originalURL); throw DbException.get(
ErrorCode.URL_RELATIVE_TO_CWD,
originalURL);
}
} }
} }
String suffix = Constants.SUFFIX_PAGE_FILE; String suffix = Constants.SUFFIX_PAGE_FILE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论