Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the database name when connecting #10

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

michivi
Copy link
Contributor

@michivi michivi commented Nov 17, 2023

This PR specifies the name of the database to connect to upon login.

This is required to work within an Azure SQL environment.

Before this change, the library always connects to the default database (master in our case). If the database we want to connect to is another database, then Azure SQL will fail, as it restrict the connection to the database you are initially connected to (so in this case master). So this PR sets the database name for the connection to the database we're actually interested in. That way, the USE statement won't be denied by Azure SQL.

Fixes #9 (and the related issue we are encountering as described in dimitri/pgloader#1324 (comment))

@archimag archimag merged commit 4a3e6ea into archimag:master Nov 18, 2023
jahangiranwari added a commit to jahangiranwari/pgloader that referenced this pull request Jan 6, 2024
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.

Connection string incompatible with azure SQL Server
2 participants