web/lib/Zend/Db/Adapter/Db2.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Db
    16  * @package    Zend_Db
    17  * @subpackage Adapter
    17  * @subpackage Adapter
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Db2.php 23199 2010-10-21 14:27:06Z ralph $
    20  * @version    $Id: Db2.php 24593 2012-01-05 20:35:02Z matthew $
    21  *
    21  *
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @see Zend_Db
    25  * @see Zend_Db
    37 require_once 'Zend/Db/Statement/Db2.php';
    37 require_once 'Zend/Db/Statement/Db2.php';
    38 
    38 
    39 
    39 
    40 /**
    40 /**
    41  * @package    Zend_Db
    41  * @package    Zend_Db
    42  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    42  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    43  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    43  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    44  */
    44  */
    45 
    45 
    46 class Zend_Db_Adapter_Db2 extends Zend_Db_Adapter_Abstract
    46 class Zend_Db_Adapter_Db2 extends Zend_Db_Adapter_Abstract
    47 {
    47 {
   159                 $this->_config['driver_options']['i5_naming'] = DB2_I5_NAMING_ON;
   159                 $this->_config['driver_options']['i5_naming'] = DB2_I5_NAMING_ON;
   160             } else {
   160             } else {
   161                 $this->_config['driver_options']['i5_naming'] = DB2_I5_NAMING_OFF;
   161                 $this->_config['driver_options']['i5_naming'] = DB2_I5_NAMING_OFF;
   162             }
   162             }
   163         }
   163         }
   164         
   164 
   165         if ($this->_config['host'] !== 'localhost' && !$this->_isI5) {
   165         if ($this->_config['host'] !== 'localhost' && !$this->_isI5) {
   166             // if the host isn't localhost, use extended connection params
   166             // if the host isn't localhost, use extended connection params
   167             $dbname = 'DRIVER={IBM DB2 ODBC DRIVER}' .
   167             $dbname = 'DRIVER={IBM DB2 ODBC DRIVER}' .
   168                      ';DATABASE=' . $this->_config['dbname'] .
   168                      ';DATABASE=' . $this->_config['dbname'] .
   169                      ';HOSTNAME=' . $this->_config['host'] .
   169                      ';HOSTNAME=' . $this->_config['host'] .