Ignore:
Timestamp:
2010/03/11 10:35:11 (14 years ago)
Author:
kajiwara
Message:

正式版にナイトリービルド版をマージしてみるテスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tmp/version-2_5-test/data/module/DB/ifx.php

    r15532 r18609  
    1919 * @author     Tomas V.V.Cox <cox@idecnet.com> 
    2020 * @author     Daniel Convissor <danielc@php.net> 
    21  * @copyright  1997-2005 The PHP Group 
     21 * @copyright  1997-2007 The PHP Group 
    2222 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    2323 * @version    CVS: $Id$ 
     
    4747 * @author     Tomas V.V.Cox <cox@idecnet.com> 
    4848 * @author     Daniel Convissor <danielc@php.net> 
    49  * @copyright  1997-2005 The PHP Group 
     49 * @copyright  1997-2007 The PHP Group 
    5050 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    51  * @version    Release: @package_version@ 
     51 * @version    Release: 1.7.14RC1 
    5252 * @link       http://pear.php.net/package/DB 
    5353 */ 
     
    102102        '-239'    => DB_ERROR_CONSTRAINT, 
    103103        '-253'    => DB_ERROR_SYNTAX, 
     104        '-268'    => DB_ERROR_CONSTRAINT, 
    104105        '-292'    => DB_ERROR_CONSTRAINT_NOT_NULL, 
    105106        '-310'    => DB_ERROR_ALREADY_EXISTS, 
     
    114115        '-692'    => DB_ERROR_CONSTRAINT, 
    115116        '-703'    => DB_ERROR_CONSTRAINT_NOT_NULL, 
     117        '-1202'   => DB_ERROR_DIVZERO, 
    116118        '-1204'   => DB_ERROR_INVALID_DATE, 
    117119        '-1205'   => DB_ERROR_INVALID_DATE, 
     
    244246    function simpleQuery($query) 
    245247    { 
    246         $ismanip = DB::isManip($query); 
     248        $ismanip = $this->_checkManip($query); 
    247249        $this->last_query = $query; 
    248250        $this->affected   = null; 
    249         if (preg_match('/(SELECT)/i', $query)) {    //TESTME: Use !DB::isManip()? 
     251        if (preg_match('/(SELECT|EXECUTE)/i', $query)) {    //TESTME: Use !DB::isManip()? 
    250252            // the scroll is needed for fetching absolute row numbers 
    251253            // in a select query result 
     
    269271        // Determine which queries should return data, and which 
    270272        // should return an error code only. 
    271         if (preg_match('/(SELECT)/i', $query)) { 
     273        if (preg_match('/(SELECT|EXECUTE)/i', $query)) { 
    272274            return $result; 
    273275        } 
     
    310312    function affectedRows() 
    311313    { 
    312         if (DB::isManip($this->last_query)) { 
     314        if ($this->_last_query_manip) { 
    313315            return $this->affected; 
    314316        } else { 
     
    421423    function freeResult($result) 
    422424    { 
    423         return @ifx_free_result($result); 
     425        return is_resource($result) ? ifx_free_result($result) : false; 
    424426    } 
    425427 
Note: See TracChangeset for help on using the changeset viewer.