mirror of
https://github.com/dg/dibi.git
synced 2025-08-30 17:29:53 +02:00
* DibiConnection::getConfig('name') returns name of connection
* seek() returns boolean again * DibiDriver throws exception when is used after free()
This commit is contained in:
@@ -147,6 +147,11 @@ class dibi extends NClass
|
||||
*/
|
||||
public static function connect($config = array(), $name = 0)
|
||||
{
|
||||
if (is_array($config)) {
|
||||
$config['name'] = $name;
|
||||
} else {
|
||||
$config .= '&name=' . urlencode($name);
|
||||
}
|
||||
return self::$connection = self::$registry[$name] = new DibiConnection($config);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user