web/lib/Zend/Db/Statement/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 Statement
    17  * @subpackage Statement
    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 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Db2.php 24625 2012-02-22 21:53:40Z adamlundrigan $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @see Zend_Db_Statement
    24  * @see Zend_Db_Statement
    25  */
    25  */
    28 /**
    28 /**
    29  * Extends for DB2 native adapter.
    29  * Extends for DB2 native adapter.
    30  *
    30  *
    31  * @package    Zend_Db
    31  * @package    Zend_Db
    32  * @subpackage Statement
    32  * @subpackage Statement
    33  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    35  */
    35  */
    36 class Zend_Db_Statement_Db2 extends Zend_Db_Statement
    36 class Zend_Db_Statement_Db2 extends Zend_Db_Statement
    37 {
    37 {
    38 
    38 
    94             $datatype = $options['data-type'];
    94             $datatype = $options['data-type'];
    95         } else {
    95         } else {
    96             $datatype = DB2_CHAR;
    96             $datatype = DB2_CHAR;
    97         }
    97         }
    98 
    98 
    99         if (!db2_bind_param($this->_stmt, $position, "variable", $type, $datatype)) {
    99         if (!db2_bind_param($this->_stmt, $parameter, "variable", $type, $datatype)) {
   100             /**
   100             /**
   101              * @see Zend_Db_Statement_Db2_Exception
   101              * @see Zend_Db_Statement_Db2_Exception
   102              */
   102              */
   103             require_once 'Zend/Db/Statement/Db2/Exception.php';
   103             require_once 'Zend/Db/Statement/Db2/Exception.php';
   104             throw new Zend_Db_Statement_Db2_Exception(
   104             throw new Zend_Db_Statement_Db2_Exception(