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

Support Windows

上级 d6e6a567
...@@ -384,7 +384,9 @@ public class ConnectionInfo implements Cloneable { ...@@ -384,7 +384,9 @@ 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)) {
if (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:./"
throw DbException.get( throw DbException.get(
...@@ -392,6 +394,7 @@ public class ConnectionInfo implements Cloneable { ...@@ -392,6 +394,7 @@ public class ConnectionInfo implements Cloneable {
originalURL); originalURL);
} }
} }
}
String suffix = Constants.SUFFIX_PAGE_FILE; String suffix = Constants.SUFFIX_PAGE_FILE;
String n; String n;
if (FileUtils.exists(name + suffix)) { if (FileUtils.exists(name + suffix)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论