mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
Updated PDO PostgreSQL Connection Creation
In addition to the pre-check for PostgreSQL needing to use pgsql as the module name, the connection generator helper also needed to be updated.
This commit is contained in:
parent
d2e3bc90d0
commit
e145b84b7c
@ -42,7 +42,7 @@ class PostgreSQLDatabaseConfigurationHelper implements DatabaseConfigurationHelp
|
||||
break;
|
||||
case 'PostgrePDODatabase':
|
||||
// May throw a PDOException if fails
|
||||
$conn = @new PDO('postgresql:host='.$server.';dbname=postgres;port=5432', $username, $password);
|
||||
$conn = @new PDO('pgsql:host='.$server.';dbname=postgres;port=5432', $username, $password);
|
||||
break;
|
||||
default:
|
||||
$error = 'Invalid connection type: ' . $databaseConfig['type'];
|
||||
|
Loading…
Reference in New Issue
Block a user