提交 ed12be22 authored 作者: Noel Grandin's avatar Noel Grandin

#535 Allow explicit paths on Windows without drive letter

上级 34cc207d
...@@ -21,6 +21,8 @@ Change Log ...@@ -21,6 +21,8 @@ Change Log
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul> <ul>
<li>Issue #535: Allow explicit paths on Windows without drive letter
</li>
<li>Fix bug in parsing ANALYZE TABLE xxx SAMPLE_SIZE yyy <li>Fix bug in parsing ANALYZE TABLE xxx SAMPLE_SIZE yyy
</li> </li>
<li>Add padding for CHAR(N) values in PostgreSQL mode <li>Add padding for CHAR(N) values in PostgreSQL mode
......
...@@ -98,7 +98,10 @@ public class FileUtils { ...@@ -98,7 +98,10 @@ public class FileUtils {
* @return if the file name is absolute * @return if the file name is absolute
*/ */
public static boolean isAbsolute(String fileName) { public static boolean isAbsolute(String fileName) {
return FilePath.get(fileName).isAbsolute(); return FilePath.get(fileName).isAbsolute()
// Allows Windows to recognize "/path" as absolute.
// Makes the same configuration work on all platforms.
|| fileName.startsWith("/");
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论