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

Support Windows

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