Commit 0f36c991 authored by Steve Müller's avatar Steve Müller

add comment about using template1 database if dbname parameter is not set

parent e19c326d
......@@ -89,6 +89,9 @@ class Driver extends AbstractPostgreSQLDriver
if (isset($params['dbname'])) {
$dsn .= 'dbname=' . $params['dbname'] . ' ';
} else {
// Used for temporary connections to allow operations like dropping the database currently connected to.
// Connecting without an explicit database does not work, therefore "template1" database is used
// as it is certainly present in every server setup.
$dsn .= 'dbname=template1' . ' ';
}
......
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