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