Class: ADODB_oci8
Source Location: /includes/classes/adodb/drivers/adodb-oci8.inc.php
ADOConnection
|
--ADODB_oci8
Connection object. For connecting to databases, and executing queries.
|
|
|
Child classes:
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
constructor ADODB_oci8 [line 93]
method BeginTrans [line 395]
method Bind [line 881]
void Bind(
&$stmt,
&$var, [
$size = 4000], [
$type = false], [
$name = false], [
$isOutput = false])
|
|
Parameters:
method BindDate [line 283]
method BindTimeStamp [line 291]
method CharMax [line 1177]
method CommitTrans [line 406]
void CommitTrans(
[
$ok = true])
|
|
Overrides ADOConnection::CommitTrans() (If database does not support transactions, always return true as data always commited)
Parameters:
method DBDate [line 275]
method DBTimeStamp [line 300]
method ErrorMsg [line 434]
method ErrorNo [line 449]
method Execute [line 748]
RecordSet &Execute(
sql
$sql, [[inputarr]
$inputarr = false])
|
|
Execute SQL
Tags:
Overrides ADOConnection::Execute() (Execute SQL)
Parameters:
method ExecuteCursor [line 826]
void &ExecuteCursor(
$sql, [
$cursorName = 'rs'], [
$params = false])
|
|
Parameters:
method GetRandRow [line 544]
method IfNull [line 269]
method MetaColumns [line 100]
method MetaForeignKeys [line 1137]
method MetaIndexes [line 329]
void &MetaIndexes(
$table, [
$primary = FALSE], [
$owner = false])
|
|
Overrides ADOConnection::MetaIndexes() (List indexes on a table as an array.)
Parameters:
method MetaPrimaryKeys [line 1102]
method MetaTables [line 313]
void &MetaTables(
[
$ttype = false], [
$showSchema = false], [
$mask = false])
|
|
Overrides ADOConnection::MetaTables() (parent method not documented)
Parameters:
method Param [line 932]
method Parameter [line 953]
void Parameter(
&$stmt,
&$var,
$name, [
$isOutput = false], [
$maxLen = 4000], [
$type = false])
|
|
Overrides ADOConnection::Parameter() (parent method not documented)
Parameters:
method Prepare [line 786]
method qstr [line 1197]
quoted qstr(
s
$s, [[magic_quotes]
$magic_quotes = false])
|
|
Quotes a string. An example is $db->qstr("Don't bother",magic_quotes_runtime());
Tags:
Overrides ADOConnection::qstr() (Correctly quotes a string so that all strings are escaped. We prefix and append to the string single-quotes.)
Parameters:
method RollbackTrans [line 418]
method RowLock [line 307]
void RowLock(
$tables,
$where, [
$flds = '1 as ignore'])
|
|
Overrides ADOConnection::RowLock() (Lock a row, will escalate and lock the table if row locking not supported will normally free the lock at the end of the transaction)
Parameters:
method SelectDB [line 429]
method SelectLimit [line 566]
method ServerInfo [line 244]
method SQLDate [line 467]
method TextMax [line 1182]
method Time [line 142]
method UpdateBlob [line 681]
void UpdateBlob(
$table,
$column,
$val,
$where, [
$blobtype = 'BLOB'])
|
|
Usage: Store BLOBs and CLOBs Example: to store $var in a blob $conn->Execute('insert into TABLE (id,ablob) values(12,empty_blob())'); $conn->UpdateBlob('TABLE', 'ablob', $varHoldingBlob, 'ID=12', 'BLOB'); $blobtype supports 'BLOB' and 'CLOB', but you need to change to 'empty_clob()'. to get length of LOB: select DBMS_LOB.GETLENGTH(ablob) from TABLE If you are using CURSOR_SHARING = force, it appears this will case a segfault under oracle 8.1.7.0. Run: $db->Execute('ALTER SESSION SET CURSOR_SHARING=EXACT'); before UpdateBlob() then...
Overrides ADOConnection::UpdateBlob() (Update a blob column, given a where clause. There are more sophisticated blob handling functions that we could have implemented, but all require a very complex API. Instead we have chosen something that is extremely simple to understand and use.)
Parameters:
method UpdateBlobFile [line 715]
void UpdateBlobFile(
$table,
$column,
$val,
$where, [
$blobtype = 'BLOB'])
|
|
Usage: store file pointed to by $var in a blob
Overrides ADOConnection::UpdateBlobFile() (Usage: UpdateBlob('TABLE', 'COLUMN', '/path/to/file', 'ID=1');)
Parameters:
method _affectedrows [line 263]
method _close [line 1085]
method _connect [line 184]
void _connect(
$argHostname,
$argUsername,
$argPassword,
$argDatabasename, [
$mode = 0])
|
|
Parameters:
method _nconnect [line 258]
void _nconnect(
$argHostname,
$argUsername,
$argPassword,
$argDatabasename)
|
|
Overrides ADOConnection::_nconnect() (parent method not documented)
Parameters:
method _pconnect [line 252]
void _pconnect(
$argHostname,
$argUsername,
$argPassword,
$argDatabasename)
|
|
Parameters:
method _query [line 978]
|
|