Commit ac0c0630 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'DBAL-453' into 2.3

parents 597da8c3 5eee2ffd
......@@ -58,10 +58,12 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
{
$params = $this->_conn->getParams();
$schema = explode(",", $this->_conn->fetchColumn('SHOW search_path'));
if (isset($params['user'])) {
$schema = str_replace('"$user"', $params['user'], $schema);
}
return $schema;
return array_map('trim', $schema);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment