mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-06-17 10:11:31 +02:00
Merge 2849d50961
into 9e8b755a59
This commit is contained in:
commit
e0bab6af4e
|
@ -145,7 +145,7 @@ class PostgreSQLDatabase extends SS_Database {
|
|||
// First, we need to check that this database exists. To do this, we will connect to the 'postgres' database first
|
||||
// some setups prevent access to this database so set PostgreSQLDatabase::$check_database_exists = false
|
||||
if(self::$check_database_exists) {
|
||||
$this->dbConn = pg_connect('host=' . $parameters['server'] . ' port=' . $port . ' dbname=postgres' . $username . $password);
|
||||
$this->dbConn = pg_connect('host=' . $parameters['server'] . ' port=' . $port . ' dbname=' . $dbName . ' ' . $username . $password);
|
||||
|
||||
if(!$this->dbConn) {
|
||||
throw new ErrorException("Couldn't connect to PostgreSQL database");
|
||||
|
|
Loading…
Reference in New Issue
Block a user