1
0
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:
David Grudl
2007-11-13 01:51:44 +00:00
parent 40444c1341
commit 0eeff53fe8
14 changed files with 85 additions and 56 deletions

View File

@@ -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);
}