On Windows url jdbc:h2:file:/tmp/db treated as relative

35 views
Skip to first unread message

Valeri Antonov

unread,
Feb 4, 2020, 11:35:50 PM2/4/20
to H2 Database
Where is special check in ConnectionInfo.getName() for '/', problem is, that on Windows path is converted to \tmp\db first (imho not a good idea - Windows works with both slashes)

file:C:/tmp/db is ugly, not compatible with unix-style, and not compatible with r2dbc (they made another mistake - always parse as URL, so C: fails). So, using r2dbc, I have no idea how to create db with absolute path

Noel Grandin

unread,
Feb 8, 2020, 4:55:48 AM2/8/20
to H2 Database

 something like

    file:///c:/tmp/db

should work


Reply all
Reply to author
Forward
0 new messages