Commit d7bbd303 authored by Kim Hemsø Rasmussen's avatar Kim Hemsø Rasmussen

Always connect postgres schema if dbname or default_dbname is not provided

parent c31de12b
...@@ -93,8 +93,9 @@ class Driver extends AbstractPostgreSQLDriver ...@@ -93,8 +93,9 @@ class Driver extends AbstractPostgreSQLDriver
} else { } else {
// Used for temporary connections to allow operations like dropping the database currently connected to. // Used for temporary connections to allow operations like dropping the database currently connected to.
// Connecting without an explicit database does not work, therefore "postgres" database is used // Connecting without an explicit database does not work, therefore "postgres" database is used
// as it is certainly present in every server setup. // as it is mostly present in every server setup.
$dsn .= 'dbname=postgres' . ' '; $dsn .= 'dbname=postgres' . ' ';
}
if (isset($params['sslmode'])) { if (isset($params['sslmode'])) {
$dsn .= 'sslmode=' . $params['sslmode'] . ' '; $dsn .= 'sslmode=' . $params['sslmode'] . ' ';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment