Skip to content

Quote the read-only SQLite URI (v0.2.1) - #4

Merged
abrignoni merged 3 commits into
mainfrom
fix/sqlite-uri-quoting
Oct 17, 2026
Merged

abrignoni merged 3 commits into
mainfrom
fix/sqlite-uri-quoting

Conversation

@abrignoni

@abrignoni abrignoni commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

read_index_tables built its read-only URI without quoting the path, so a folder like "case #1" cut it at the '#' and SQLite opened (and created) a different file.

  • The path is now percent-quoted. A UNC path on Windows keeps the empty authority SQLite needs.
  • A new test (tests/test_index_uri.py) reads an index table from a folder named case #1?x (case #1 %3F on Windows, which forbids '?'). It fails on the old code. A Windows-only test opens one through \\localhost\C$.
  • Bumps to 0.2.1.

🤖 Generated with Claude Code

abrignoni and others added 3 commits October 17, 2026 17:51
read_index_tables built file:{as_posix()}?mode=ro, which leaves '#' and '?'
unquoted. A folder such as "case #1" ended the URI at the '#', and SQLite
opened, and created, a different file, so the index tables read as absent.
The path is now percent-quoted. On Windows a UNC path keeps an empty
authority, which SQLite requires, rather than going through Path.as_uri().

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quotes the read-only SQLite URI so a "#" or "?" in a path is read as part of it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The frozen-build smoke test imports test_rejoin.py without pytest installed,
so the tests that need pytest live in tests/test_index_uri.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit 81fd75c into main Oct 17, 2026
16 checks passed
@abrignoni
abrignoni deleted the fix/sqlite-uri-quoting branch October 17, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant