Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 402] [Versions 400 and 403]

Portable version of Oracle oci8 driver

Copyright: 2000-2013 John Lim
Copyright: 2014 Damien Regad, Mark Newnham and the ADOdb community
License: BSD-3-Clause
License: LGPL-2.1-or-later
File Size: 281 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

ADODB_oci8po:: (6 methods):
  Param()
  Prepare()
  Execute()
  SelectLimit()
  _query()
  extractBinds()

Name:: (0 methods):

ADORecordset_oci8po:: (5 methods):
  Fields()
  _FetchField()
  MoveNext()
  GetArrayLimit()
  _fetch()


Class: ADODB_oci8po  - X-Ref

Param($name,$type='C')   X-Ref
No description

Prepare($sql,$cursor=false)   X-Ref
No description

Execute($sql,$inputarr=false)   X-Ref
No description

SelectLimit($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0)   X-Ref
The optimizations performed by ADODB_oci8::SelectLimit() are not
compatible with the oci8po driver, so we rely on the slower method
from the base class.
We can't properly handle prepared statements either due to preprocessing
of query parameters, so we treat them as regular SQL statements.


_query($sql,$inputarr=false)   X-Ref
No description

extractBinds($sql,$inputarr)   X-Ref
Replaces compatibility bind markers with oracle ones and returns a
valid sql statement

This replaces a regexp based section of code that has been subject
to numerous tweaks, as more extreme test cases have appeared. This
is now done this like this to help maintainability and avoid the
need to rely on regexp experienced maintainers

return: string    The modified statement
param: string        $sql        The sql statement
param: string[]    $inputarr    The bind array

Class: Name  - X-Ref

Class: ADORecordset_oci8po  - X-Ref

Fields($colname)   X-Ref
No description

_FetchField($fieldOffset = -1)   X-Ref
No description

MoveNext()   X-Ref
No description

GetArrayLimit($nrows,$offset=-1)   X-Ref
No description

_fetch()   X-Ref
No description