mirror of
https://github.com/dg/dibi.git
synced 2025-08-03 20:57:36 +02:00
PostgreSQL: add support for more than one schema in search_path (#239)
This commit is contained in:
committed by
David Grudl
parent
7b899ddda5
commit
73289d0569
@@ -100,7 +100,7 @@ class PostgreDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector
|
||||
}
|
||||
|
||||
if (isset($config['schema'])) {
|
||||
$this->query('SET search_path TO "' . $config['schema'] . '"');
|
||||
$this->query('SET search_path TO "' . implode('", "', (array) $config['schema']) . '"');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user