- 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-firebird.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, … … 45 45 // SELECT col1, col2 FROM table ROWS 5 -- get 5 rows 46 46 // SELECT col1, col2 FROM TABLE ORDER BY col1 ROWS 3 TO 7 -- first 5 skip 2 47 function &SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false, $secs=0)47 function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false, $secs=0) 48 48 { 49 49 $nrows = (integer) $nrows; … … 55 55 $sql = preg_replace('/^[ \t]*select/i',$str,$sql); 56 56 if ($secs) 57 $rs = &$this->CacheExecute($secs,$sql,$inputarr);57 $rs = $this->CacheExecute($secs,$sql,$inputarr); 58 58 else 59 $rs = &$this->Execute($sql,$inputarr);59 $rs = $this->Execute($sql,$inputarr); 60 60 61 61 return $rs;
Note: See TracChangeset
for help on using the changeset viewer.