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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.