C:/lib/adodb/drivers/adodb-oci805.inc.php Quellcode

adodb-oci805.inc.php
gehe zur Dokumentation dieser Datei
1 <?php
15 // security - hide paths
16 if (!defined('ADODB_DIR')) die();
17 
18 include_once(ADODB_DIR.'/drivers/adodb-oci8.inc.php');
19 
20 class ADODB_oci805 extends ADODB_oci8 {
21  var $databaseType = "oci805";
22  var $connectSID = true;
23 
24  function ADODB_oci805()
25  {
26  $this->ADODB_oci8();
27  }
28 
29  function SelectLimit($sql,$nrows=-1,$offset=-1, $inputarr=false,$secs2cache=0)
30  {
31  // seems that oracle only supports 1 hint comment in 8i
32  if (strpos($sql,'/*+') !== false)
33  $sql = str_replace('/*+ ','/*+FIRST_ROWS ',$sql);
34  else
35  $sql = preg_replace('/^[ \t\n]*select/i','SELECT /*+FIRST_ROWS*/',$sql);
36 
37  /*
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
41  if ($nrows > 0) {
42  if ($offset > 0) $nrows += $offset;
43  $sql = "select * from ($sql) where rownum <= $nrows";
44  $nrows = -1;
45  }
46  */
47 
48  return ADOConnection::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
49  }
50 }
51 
53  var $databaseType = "oci805";
54  function ADORecordset_oci805($id,$mode=false)
55  {
56  $this->ADORecordset_oci8($id,$mode);
57  }
58 }
59 ?>




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.