Closed
Description
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
Labels
No labels