Commit 5eee2ffd authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-453] Trim search parth entries.

parent 597da8c3
......@@ -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