- Timestamp:
- 2013/08/02 13:22:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/module/MDB2/Driver/Function/Common.php
r20764 r23022 43 43 // +----------------------------------------------------------------------+ 44 44 // 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 $ 46 46 // 47 47 … … 79 79 * @access public 80 80 */ 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)) { 85 85 return $db; 86 86 } 87 87 88 $error = &$db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,88 $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 89 89 'method not implemented', __FUNCTION__); 90 90 return $error; … … 146 146 function unixtimestamp($expression) 147 147 { 148 $db = &$this->getDBInstance();149 if ( PEAR::isError($db)) {148 $db = $this->getDBInstance(); 149 if (MDB2::isError($db)) { 150 150 return $db; 151 151 } 152 152 153 $error = &$db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,153 $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 154 154 'method not implemented', __FUNCTION__); 155 155 return $error; … … 167 167 function substring($value, $position = 1, $length = null) 168 168 { 169 if ( !is_null($length)) {169 if (null !== $length) { 170 170 return "SUBSTRING($value FROM $position FOR $length)"; 171 171 } … … 279 279 function guid() 280 280 { 281 $db = &$this->getDBInstance();282 if ( PEAR::isError($db)) {281 $db = $this->getDBInstance(); 282 if (MDB2::isError($db)) { 283 283 return $db; 284 284 } 285 285 286 $error = &$db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null,286 $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 287 287 'method not implemented', __FUNCTION__); 288 288 return $error;
Note: See TracChangeset
for help on using the changeset viewer.