1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 06:07:39 +02:00

PostgreSQL: add support for more than one schema in search_path (#239)

This commit is contained in:
Martin Dzíbela
2017-01-04 14:32:44 +01:00
committed by David Grudl
parent 7b899ddda5
commit 73289d0569

View File

@@ -100,7 +100,7 @@ class PostgreDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector
} }
if (isset($config['schema'])) { if (isset($config['schema'])) {
$this->query('SET search_path TO "' . $config['schema'] . '"'); $this->query('SET search_path TO "' . implode('", "', (array) $config['schema']) . '"');
} }
} }