mirror of
https://github.com/dg/dibi.git
synced 2025-08-16 11:04:43 +02:00
- DibiPostgreDriver: added support for "schema"
- DibiTable::fetch($conditions) (experimental) - DibiConnection no longer invokes autoloading
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
* - 'string' - or use connection string
|
||||
* - 'persistent' - try to find a persistent link?
|
||||
* - 'charset' - character encoding to set
|
||||
* - 'schema' - the schema search path
|
||||
* - 'lazy' - if TRUE, connection will be established only when required
|
||||
*
|
||||
* @author David Grudl
|
||||
@@ -105,6 +106,10 @@ class DibiPostgreDriver extends NObject implements IDibiDriver
|
||||
DibiDriverException::restore();
|
||||
}
|
||||
|
||||
if (isset($config['schema'])) {
|
||||
$this->query('SET search_path TO ' . $config['schema']);
|
||||
}
|
||||
|
||||
$this->escMethod = version_compare(PHP_VERSION , '5.2.0', '>=');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user