Ignore:
Timestamp:
09/26/13 15:41:49 (11 years ago)
Author:
angelo
Message:

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/drivers/adodb-oracle.inc.php

    r34 r8222  
    11<?php 
    22/* 
    3 V4.94 23 Jan 2007  (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved. 
     3V5.18 3 Sep 2012  (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. 
    44  Released under both BSD license and Lesser GPL library license.  
    55  Whenever there is any discrepancy between the two licenses,  
     
    3636        { 
    3737                if (is_string($d)) $d = ADORecordSet::UnixDate($d); 
    38                 return 'TO_DATE('.adodb_date($this->fmtDate,$d).",'YYYY-MM-DD')"; 
     38                if (is_object($d)) $ds = $d->format($this->fmtDate); 
     39                else $ds = adodb_date($this->fmtDate,$d); 
     40                return 'TO_DATE('.$ds.",'YYYY-MM-DD')"; 
    3941        } 
    4042         
     
    4345        { 
    4446 
    45                 if (is_string($ts)) $d = ADORecordSet::UnixTimeStamp($ts); 
    46                 return 'TO_DATE('.adodb_date($this->fmtTimeStamp,$ts).",'RRRR-MM-DD, HH:MI:SS AM')"; 
     47                if (is_string($ts)) $ts = ADORecordSet::UnixTimeStamp($ts); 
     48                if (is_object($ts)) $ds = $ts->format($this->fmtDate); 
     49                else $ds = adodb_date($this->fmtTimeStamp,$ts); 
     50                return 'TO_DATE('.$ds.",'RRRR-MM-DD, HH:MI:SS AM')"; 
    4751        } 
    4852         
     
    249253                           fetchField() is retrieved.           */ 
    250254 
    251            function &FetchField($fieldOffset = -1) 
     255           function FetchField($fieldOffset = -1) 
    252256           { 
    253257                        $fld = new ADOFieldObject; 
     
    287291// should remove call by reference, but ora_fetch_into requires it in 4.0.3pl1 
    288292                if ($this->fetchMode & ADODB_FETCH_ASSOC) 
    289                         return @ora_fetch_into($this->_queryID,&$this->fields,ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC); 
     293                        return @ora_fetch_into($this->_queryID,$this->fields,ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC); 
    290294                else  
    291                         return @ora_fetch_into($this->_queryID,&$this->fields,ORA_FETCHINTO_NULLS); 
     295                        return @ora_fetch_into($this->_queryID,$this->fields,ORA_FETCHINTO_NULLS); 
    292296   } 
    293297 
Note: See TracChangeset for help on using the changeset viewer.