Skip to content

Database name is incorrectly identified for Azure PostgreSQL #452

@DmitrySenin

Description

@DmitrySenin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions