Ignore:
Timestamp:
2013/08/02 13:22:57 (13 years ago)
Author:
Seasoft
Message:

#2322 (セッションのGC処理がエラーとなる)

Location:
branches/version-2_13-dev/data/module/MDB2/Driver/Function
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/module/MDB2/Driver/Function/Common.php

    r20764 r23022  
    4343// +----------------------------------------------------------------------+ 
    4444// 
    45 // $Id: Common.php,v 1.21 2008/02/17 18:51:39 quipo Exp $ 
     45// $Id: Common.php 327310 2012-08-27 15:16:18Z danielc $ 
    4646// 
    4747 
     
    7979     * @access public 
    8080     */ 
    81     function &executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
    82     { 
    83         $db =& $this->getDBInstance(); 
    84         if (PEAR::isError($db)) { 
     81    function executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
     82    { 
     83        $db = $this->getDBInstance(); 
     84        if (MDB2::isError($db)) { 
    8585            return $db; 
    8686        } 
    8787 
    88         $error =& $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
     88        $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
    8989            'method not implemented', __FUNCTION__); 
    9090        return $error; 
     
    146146    function unixtimestamp($expression) 
    147147    { 
    148         $db =& $this->getDBInstance(); 
    149         if (PEAR::isError($db)) { 
     148        $db = $this->getDBInstance(); 
     149        if (MDB2::isError($db)) { 
    150150            return $db; 
    151151        } 
    152152 
    153         $error =& $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
     153        $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
    154154            'method not implemented', __FUNCTION__); 
    155155        return $error; 
     
    167167    function substring($value, $position = 1, $length = null) 
    168168    { 
    169         if (!is_null($length)) { 
     169        if (null !== $length) { 
    170170            return "SUBSTRING($value FROM $position FOR $length)"; 
    171171        } 
     
    279279    function guid() 
    280280    { 
    281         $db =& $this->getDBInstance(); 
    282         if (PEAR::isError($db)) { 
     281        $db = $this->getDBInstance(); 
     282        if (MDB2::isError($db)) { 
    283283            return $db; 
    284284        } 
    285285 
    286         $error =& $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
     286        $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
    287287            'method not implemented', __FUNCTION__); 
    288288        return $error; 
  • branches/version-2_13-dev/data/module/MDB2/Driver/Function/mysql.php

    r20764 r23022  
    4343// +----------------------------------------------------------------------+ 
    4444// 
    45 // $Id: mysql.php,v 1.12 2008/02/17 18:54:08 quipo Exp $ 
     45// $Id: mysql.php 327310 2012-08-27 15:16:18Z danielc $ 
    4646// 
    4747 
     
    7272     * @access public 
    7373     */ 
    74     function &executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
     74    function executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
    7575    { 
    76         $db =& $this->getDBInstance(); 
    77         if (PEAR::isError($db)) { 
     76        $db = $this->getDBInstance(); 
     77        if (MDB2::isError($db)) { 
    7878            return $db; 
    7979        } 
  • branches/version-2_13-dev/data/module/MDB2/Driver/Function/pgsql.php

    r20764 r23022  
    4343// +----------------------------------------------------------------------+ 
    4444// 
    45 // $Id: pgsql.php,v 1.11 2008/11/09 19:46:50 quipo Exp $ 
     45// $Id: pgsql.php 327310 2012-08-27 15:16:18Z danielc $ 
    4646 
    4747require_once 'MDB2/Driver/Function/Common.php'; 
     
    7070     * @access public 
    7171     */ 
    72     function &executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
     72    function executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
    7373    { 
    74         $db =& $this->getDBInstance(); 
    75         if (PEAR::isError($db)) { 
     74        $db = $this->getDBInstance(); 
     75        if (MDB2::isError($db)) { 
    7676            return $db; 
    7777        } 
     
    9898 
    9999    // }}} 
     100    // {{{ substring() 
     101 
     102    /** 
     103     * return string to call a function to get a substring inside an SQL statement 
     104     * 
     105     * @return string to call a function to get a substring 
     106     * @access public 
     107     */ 
     108    function substring($value, $position = 1, $length = null) 
     109    { 
     110        if (null !== $length) { 
     111            return "SUBSTRING(CAST($value AS VARCHAR) FROM $position FOR $length)"; 
     112        } 
     113        return "SUBSTRING(CAST($value AS VARCHAR) FROM $position)"; 
     114    } 
     115 
     116    // }}} 
    100117    // {{{ random() 
    101118 
Note: See TracChangeset for help on using the changeset viewer.