3 * @version V5.14 8 Sept 2011 (c) 2000-2011 John Lim (jlim#natsoft.com). All rights reserved.
4 * Released under both BSD license and Lesser GPL library license.
5 * Whenever there is any discrepancy between the two licenses,
6 * the BSD license will take precedence.
8 * Set tabs to 4 for best viewing.
10 * Latest version is available at http://php.weblogs.com
15 // security - hide paths
16 if (!defined('ADODB_DIR')) die();
18 include_once(ADODB_DIR
.'/drivers/adodb-oci8.inc.php');
20 class ADODB_oci805
extends ADODB_oci8
{
21 var $databaseType = "oci805";
22 var $connectSID = true;
24 function ADODB_oci805()
29 function SelectLimit($sql,$nrows=-1,$offset=-1, $inputarr=false,$secs2cache=0)
31 // seems that oracle only supports 1 hint comment in 8i
32 if (strpos($sql,'/*+') !== false)
33 $sql = str_replace('/*+ ','/*+FIRST_ROWS ',$sql);
35 $sql = preg_replace('/^[ \t\n]*select/i','SELECT /*+FIRST_ROWS*/',$sql);
38 The following is only available from 8.1.5 because order by in inline views not
39 available before then...
40 http://www.jlcomp.demon.co.uk/faq/top_sql.html
42 if ($offset > 0) $nrows += $offset;
43 $sql = "select * from ($sql) where rownum <= $nrows";
48 return ADOConnection
::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
52 class ADORecordset_oci805
extends ADORecordset_oci8
{
53 var $databaseType = "oci805";
54 function ADORecordset_oci805($id,$mode=false)
56 $this->ADORecordset_oci8($id,$mode);