`unable to open database file` if path is prefixed with `\\?\` on Windows
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 9.2k
- Forks
- 1.2k
- Avg merge
- 19m
- Merged PRs (30d)
- 4
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the sql.Open("sqlite3", "\\?\...") case on Windows and compare it with the same path without the prefix. Trace the Windows path handling in the driver; done means valid long-path-prefixed database paths open successfully without breaking ordinary paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sqlite
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100