Skip to content

Conversation

@andrewmbenton
Copy link
Collaborator

Lack of leading slash was causing database connections to fail whenever dbmanager tried to access a newly-created database.

@kyleconroykyleconroy merged commit b78e322 into mainJul 19, 2024
@kyleconroykyleconroy deleted the andrew/dbmanager-uri-fix branch July 19, 2024 22:28
@andrewmbenton
Copy link
CollaboratorAuthor

In general this path rewrite isn't safe I don't think, since the database name in the original URI could exist in a query parameter rather than the path and then there'd be a potential conflict. We should modify the database name after parsing I think.

alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
Sign up for freeto 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.

3 participants

@andrewmbenton@kyleconroy