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:
Chris Graham 2019-10-29 11:41:26 -06:00
parent d2e3bc90d0
commit e145b84b7c
1 changed files with 1 additions and 1 deletions

View File

@ -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'];