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

Database name is incorrectly identified for Azure PostgreSQL #452

Open
DmitrySenin opened this issue Sep 15, 2022 · 0 comments
Open

Database name is incorrectly identified for Azure PostgreSQL #452

DmitrySenin opened this issue Sep 15, 2022 · 0 comments

Comments

@DmitrySenin
Copy link

DmitrySenin commented Sep 15, 2022

When running RoundhousE against Azure Database providing connection string via /connstring parameter, it incorrectly identifies database name (uses server name).

/connstring="Host=test.postgres.database.azure.com;Database=Roundhouse;User ID=postgres;Password=;"

STR:
Execute roundhouse against Azure PostgreSQL Database server

REASON:
This piece of code parses the connection string using "keywords" like Host, Database but in azure the server URL does contain 'Database' and the logic breaks
I suppose NpgsqlConnection can be used to parse the string properly

WORKAROUND:
If Database goes first in the connection string then the problem can be avoided. So something like this "Database=Roundhouse;Host=test.postgres.database.azure.com;User ID=postgres;Password=;" works

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

No branches or pull requests

1 participant