Source for file adodb-borland_ibase.inc.php
Documentation is available at adodb-borland_ibase.inc.php
V4.97 22 Jan 2008 (c) 2000-2008 John Lim (jlim#natsoft.com.my). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Set tabs to 4 for best viewing.
Latest version is available at http://adodb.sourceforge.net
Support Borland Interbase 6.5 and later
include_once(ADODB_DIR. "/drivers/adodb-ibase.inc.php");
switch($arr['dialect']) {
case '1': $s = 'Interbase 6.5, Dialect 1'; break;
case '2': $s = 'Interbase 6.5, Dialect 2'; break;
case '3': $s = 'Interbase 6.5, Dialect 3'; break;
$arr['description'] = $s;
// Note that Interbase 6.5 uses ROWS instead - don't you love forking wars!
// SELECT col1, col2 FROM table ROWS 5 -- get 5 rows
// SELECT col1, col2 FROM TABLE ORDER BY col1 ROWS 3 TO 7 -- first 5 skip 2
// SELECT FIRST 5 SKIP 2 col1, col2 FROM TABLE
function &SelectLimit($sql,$nrows=- 1,$offset=- 1,$inputarr= false,$secs2cache= 0)
if ($offset <= 0) $str = " ROWS $nrows ";
$str = " ROWS $a TO 999999999"; // 999 million
$this->ADORecordSet_ibase($id,$mode);
|