Skip to content

Connection string parsing corner case #162

Closed
@johto

Description

@johto

We currently don't fail on a connection string like this: "postgre://marko@internet". From a quick scan of the code it looks like this is because we parse the connection string the same way as libpq does, but we miss the last step: if the connection string is one big blob, libpq uses it as the database name:

psql "postgre://marko@internet"
psql: FATAL:  database "postgre://marko@internet" does not exist

Silently ignoring the blob seems like a bad idea, but I'm not sure we want to use it as the database name either. Any thoughts?

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