TYPO3 CMS  TYPO3_7-6
adodb-oci805.inc.php
Go to the documentation of this file.
1 <?php
17 // security - hide paths
18 if (!defined('ADODB_DIR')) die();
19 
20 include_once(ADODB_DIR.'/drivers/adodb-oci8.inc.php');
21 
22 class ADODB_oci805 extends ADODB_oci8 {
23  var $databaseType = "oci805";
24  var $connectSID = true;
25 
26  function SelectLimit($sql,$nrows=-1,$offset=-1, $inputarr=false,$secs2cache=0)
27  {
28  // seems that oracle only supports 1 hint comment in 8i
29  if (strpos($sql,'/*+') !== false)
30  $sql = str_replace('/*+ ','/*+FIRST_ROWS ',$sql);
31  else
32  $sql = preg_replace('/^[ \t\n]*select/i','SELECT /*+FIRST_ROWS*/',$sql);
33 
34  /*
35  The following is only available from 8.1.5 because order by in inline views not
36  available before then...
37  http://www.jlcomp.demon.co.uk/faq/top_sql.html
38  if ($nrows > 0) {
39  if ($offset > 0) $nrows += $offset;
40  $sql = "select * from ($sql) where rownum <= $nrows";
41  $nrows = -1;
42  }
43  */
44 
45  return ADOConnection::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
46  }
47 }
48 
50  var $databaseType = "oci805";
51  function __construct($id,$mode=false)
52  {
53  parent::__construct($id,$mode);
54  }
55 }
__construct($id, $mode=false)
SelectLimit($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)
$sql
Definition: server.php:84