web/lib/Zend/Db.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * obtain it through the world-wide-web, please send an email
    13  * obtain it through the world-wide-web, please send an email
    14  * to license@zend.com so we can send you a copy immediately.
    14  * to license@zend.com so we can send you a copy immediately.
    15  *
    15  *
    16  * @category   Zend
    16  * @category   Zend
    17  * @package    Zend_Db
    17  * @package    Zend_Db
    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: Db.php 23405 2010-11-19 19:46:10Z bittarman $
    20  * @version    $Id: Db.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 
    23 
    24 /**
    24 /**
    25  * Class for connecting to SQL databases and performing common operations.
    25  * Class for connecting to SQL databases and performing common operations.
    26  *
    26  *
    27  * @category   Zend
    27  * @category   Zend
    28  * @package    Zend_Db
    28  * @package    Zend_Db
    29  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    29  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    30  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    30  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    31  */
    31  */
    32 class Zend_Db
    32 class Zend_Db
    33 {
    33 {
    34 
    34 
    88      *    'ERRMODE_WARNING', 'ERRMODE_EXCEPTION', 'CASE_NATURAL',
    88      *    'ERRMODE_WARNING', 'ERRMODE_EXCEPTION', 'CASE_NATURAL',
    89      *    'CASE_LOWER', 'CASE_UPPER', 'NULL_NATURAL', 'NULL_EMPTY_STRING',
    89      *    'CASE_LOWER', 'CASE_UPPER', 'NULL_NATURAL', 'NULL_EMPTY_STRING',
    90      *    'NULL_TO_STRING', 'ERR_NONE', 'FETCH_ORI_NEXT',
    90      *    'NULL_TO_STRING', 'ERR_NONE', 'FETCH_ORI_NEXT',
    91      *    'FETCH_ORI_PRIOR', 'FETCH_ORI_FIRST', 'FETCH_ORI_LAST',
    91      *    'FETCH_ORI_PRIOR', 'FETCH_ORI_FIRST', 'FETCH_ORI_LAST',
    92      *    'FETCH_ORI_ABS', 'FETCH_ORI_REL', 'CURSOR_FWDONLY', 'CURSOR_SCROLL',
    92      *    'FETCH_ORI_ABS', 'FETCH_ORI_REL', 'CURSOR_FWDONLY', 'CURSOR_SCROLL',
       
    93      *    'ERR_CANT_MAP', 'ERR_SYNTAX', 'ERR_CONSTRAINT', 'ERR_NOT_FOUND',
       
    94      *    'ERR_ALREADY_EXISTS', 'ERR_NOT_IMPLEMENTED', 'ERR_MISMATCH',
       
    95      *    'ERR_TRUNCATED', 'ERR_DISCONNECTED', 'ERR_NO_PERM',
    93      * );
    96      * );
    94      *
    97      *
    95      * $const = array();
    98      * $const = array();
    96      * foreach ($list as $name) {
    99      * foreach ($list as $name) {
    97      *    $const[$name] = constant("PDO::$name");
   100      *    $const[$name] = constant("PDO::$name");
   120     const CASE_LOWER = 2;
   123     const CASE_LOWER = 2;
   121     const CASE_NATURAL = 0;
   124     const CASE_NATURAL = 0;
   122     const CASE_UPPER = 1;
   125     const CASE_UPPER = 1;
   123     const CURSOR_FWDONLY = 0;
   126     const CURSOR_FWDONLY = 0;
   124     const CURSOR_SCROLL = 1;
   127     const CURSOR_SCROLL = 1;
       
   128     const ERR_ALREADY_EXISTS = NULL;
       
   129     const ERR_CANT_MAP = NULL;
       
   130     const ERR_CONSTRAINT = NULL;
       
   131     const ERR_DISCONNECTED = NULL;
       
   132     const ERR_MISMATCH = NULL;
       
   133     const ERR_NO_PERM = NULL;
   125     const ERR_NONE = '00000';
   134     const ERR_NONE = '00000';
       
   135     const ERR_NOT_FOUND = NULL;
       
   136     const ERR_NOT_IMPLEMENTED = NULL;
       
   137     const ERR_SYNTAX = NULL;
       
   138     const ERR_TRUNCATED = NULL;
   126     const ERRMODE_EXCEPTION = 2;
   139     const ERRMODE_EXCEPTION = 2;
   127     const ERRMODE_SILENT = 0;
   140     const ERRMODE_SILENT = 0;
   128     const ERRMODE_WARNING = 1;
   141     const ERRMODE_WARNING = 1;
   129     const FETCH_ASSOC = 2;
   142     const FETCH_ASSOC = 2;
   130     const FETCH_BOTH = 4;
   143     const FETCH_BOTH = 4;