- Timestamp:
- 09/26/13 15:41:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/drivers/adodb-oracle.inc.php
r34 r8222 1 1 <?php 2 2 /* 3 V 4.94 23 Jan 2007 (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved.3 V5.18 3 Sep 2012 (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. 4 4 Released under both BSD license and Lesser GPL library license. 5 5 Whenever there is any discrepancy between the two licenses, … … 36 36 { 37 37 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')"; 39 41 } 40 42 … … 43 45 { 44 46 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')"; 47 51 } 48 52 … … 249 253 fetchField() is retrieved. */ 250 254 251 function &FetchField($fieldOffset = -1)255 function FetchField($fieldOffset = -1) 252 256 { 253 257 $fld = new ADOFieldObject; … … 287 291 // should remove call by reference, but ora_fetch_into requires it in 4.0.3pl1 288 292 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); 290 294 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); 292 296 } 293 297
Note: See TracChangeset
for help on using the changeset viewer.