"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/drivers/adodb-oci805.inc.php Source File", "datetime" => "Sat Dec 2 19:22:26 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>

adodb-oci805.inc.php

00001 <?php
00015 // security - hide paths
00016 if (!defined('ADODB_DIR')) die();
00017 
00018 include_once(ADODB_DIR.'/drivers/adodb-oci8.inc.php');
00019 
00020 class ADODB_oci805 extends ADODB_oci8 {
00021         var $databaseType = "oci805";   
00022         var $connectSID = true;
00023         
00024         function ADODB_oci805() 
00025         {
00026                 $this->ADODB_oci8();
00027         }
00028         
00029         function &SelectLimit($sql,$nrows=-1,$offset=-1, $inputarr=false,$secs2cache=0)
00030         {
00031                 // seems that oracle only supports 1 hint comment in 8i
00032                 if (strpos($sql,'/*+') !== false)
00033                         $sql = str_replace('/*+ ','/*+FIRST_ROWS ',$sql);
00034                 else
00035                         $sql = preg_replace('/^[ \t\n]*select/i','SELECT /*+FIRST_ROWS*/',$sql);
00036                 
00037                 /* 
00038                         The following is only available from 8.1.5 because order by in inline views not 
00039                         available before then...
00040                         http://www.jlcomp.demon.co.uk/faq/top_sql.html
00041                 if ($nrows > 0) {       
00042                         if ($offset > 0) $nrows += $offset;
00043                         $sql = "select * from ($sql) where rownum <= $nrows";
00044                         $nrows = -1;
00045                 }
00046                 */
00047 
00048                 return ADOConnection::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
00049         }
00050 }
00051 
00052 class ADORecordset_oci805 extends ADORecordset_oci8 {   
00053         var $databaseType = "oci805";
00054         function ADORecordset_oci805($id,$mode=false)
00055         {
00056                 $this->ADORecordset_oci8($id,$mode);
00057         }
00058 }
00059 ?>