Actually use host in test connection for Postgres

This commit is contained in:
Timothy Warren 2016-07-19 11:53:37 -04:00
parent f0704ed35e
commit ae9dc46a17

View File

@ -44,7 +44,7 @@ class PgTest extends DBTest {
else if ($params !== FALSE)
{
$params = $params->pgsql;
self::$db = new $class("pgsql:dbname={$params->database};port=5432", $params->user, $params->pass);
self::$db = new $class("pgsql:host={$params->host};dbname={$params->database};port=5432", $params->user, $params->pass);
}
self::$db->set_table_prefix('create_');