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.

@andrewmbenton andrewmbenton requested a review from kyleconroy July 19, 2024 22:22
@kyleconroy kyleconroy merged commit b78e322 into main Jul 19, 2024
@kyleconroy kyleconroy deleted the andrew/dbmanager-uri-fix branch July 19, 2024 22:28
@andrewmbenton
Copy link
Collaborator Author

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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants