go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

`unable to open database file` if path is prefixed with `\\?\` on Windows

Open Wieku opened this issue 3 years ago • 1 comments

When path is prefixed with \\?\ on Windows which is valid when we want to go beyond 260 character path limit, sql.Open("sqlite3", "\\\\?\\......") fails with this error:

unable to open database file: The filename, directory name, or volume label syntax is incorrect

Using the same path without that prefix works.

Wieku avatar Aug 10 '22 09:08 Wieku