import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @package Zend_Db
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Db.php 16203 2009-06-21 18:56:17Z thomas $
|
||||
* @version $Id: Db.php 18373 2009-09-22 19:16:25Z ralph $
|
||||
*/
|
||||
|
||||
|
||||
@ -171,7 +171,10 @@ class Zend_Db
|
||||
*
|
||||
* First argument may be a string containing the base of the adapter class
|
||||
* name, e.g. 'Mysqli' corresponds to class Zend_Db_Adapter_Mysqli. This
|
||||
* is case-insensitive.
|
||||
* name is currently case-insensitive, but is not ideal to rely on this behavior.
|
||||
* If your class is named 'My_Company_Pdo_Mysql', where 'My_Company' is the namespace
|
||||
* and 'Pdo_Mysql' is the adapter name, it is best to use the name exactly as it
|
||||
* is defined in the class. This will ensure proper use of the factory API.
|
||||
*
|
||||
* First argument may alternatively be an object of type Zend_Config.
|
||||
* The adapter class base name is read from the 'adapter' property.
|
||||
@ -241,8 +244,10 @@ class Zend_Db
|
||||
}
|
||||
unset($config['adapterNamespace']);
|
||||
}
|
||||
$adapterName = strtolower($adapterNamespace . '_' . $adapter);
|
||||
$adapterName = str_replace(' ', '_', ucwords(str_replace('_', ' ', $adapterName)));
|
||||
|
||||
// Adapter no longer normalized- see http://framework.zend.com/issues/browse/ZF-5606
|
||||
$adapterName = $adapterNamespace . '_';
|
||||
$adapterName .= str_replace(' ', '_', ucwords(str_replace('_', ' ', strtolower($adapter))));
|
||||
|
||||
/*
|
||||
* Load the adapter class. This throws an exception
|
||||
|
Reference in New Issue
Block a user