- Timestamp:
- 2013/08/02 13:22:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/module/MDB2/Driver/Function/pgsql.php
r20764 r23022 43 43 // +----------------------------------------------------------------------+ 44 44 // 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 $ 46 46 47 47 require_once 'MDB2/Driver/Function/Common.php'; … … 70 70 * @access public 71 71 */ 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) 73 73 { 74 $db = &$this->getDBInstance();75 if ( PEAR::isError($db)) {74 $db = $this->getDBInstance(); 75 if (MDB2::isError($db)) { 76 76 return $db; 77 77 } … … 98 98 99 99 // }}} 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 // }}} 100 117 // {{{ random() 101 118
Note: See TracChangeset
for help on using the changeset viewer.
