-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
RunScript.execute(url, username, password, "classpath:/test.sql", StandardCharsets.UTF_8, false);
works on MacOS and Linux but fails on Windows:
java.nio.file.InvalidPathException: Illegal char <:> at index 9: classpath:/test.sql
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204) ~[na:na]
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:175) ~[na:na]
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) ~[na:na]
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) ~[na:na]
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:231) ~[na:na]
at java.base/java.nio.file.Path.of(Path.java:148) ~[na:na]
at java.base/java.nio.file.Paths.get(Paths.java:69) ~[na:na]
at org.h2.store.fs.disk.FilePathDisk.getParent(FilePathDisk.java:340) ~[h2-2.3.232.jar:2.3.232]
at org.h2.store.fs.FileUtils.getParent(FileUtils.java:132) ~[h2-2.3.232.jar:2.3.232]
at org.h2.tools.RunScript.process(RunScript.java:186) ~[h2-2.3.232.jar:2.3.232]
at org.h2.tools.RunScript.process(RunScript.java:313) ~[h2-2.3.232.jar:2.3.232]
at org.h2.tools.RunScript.execute(RunScript.java:292) ~[h2-2.3.232.jar:2.3.232]
A sample app to reproduce the issue https://github.com/codecraft21/playground
Metadata
Metadata
Assignees
Labels
No labels