"TYPO3 4.0.1: ADODB_oci8 Class Reference", "datetime" => "Sat Dec 2 19:23:22 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>


Public Member Functions | |
| ADODB_oci8 () | |
| & | MetaColumns ($table) |
| Time () | |
| _connect ($argHostname, $argUsername, $argPassword, $argDatabasename, $mode=0) | |
| ServerInfo () | |
| _pconnect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
| _nconnect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
| _affectedrows () | |
| IfNull ($field, $ifNull) | |
| DBDate ($d) | |
| BindDate ($d) | |
| BindTimeStamp ($d) | |
| DBTimeStamp ($ts) | |
| RowLock ($tables, $where, $flds='1 as ignore') | |
| & | MetaTables ($ttype=false, $showSchema=false, $mask=false) |
| & | MetaIndexes ($table, $primary=FALSE, $owner=false) |
| BeginTrans () | |
| CommitTrans ($ok=true) | |
| RollbackTrans () | |
| SelectDB ($dbName) | |
| ErrorMsg () | |
| ErrorNo () | |
| SQLDate ($fmt, $col=false) | |
| & | SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0) |
| UpdateBlob ($table, $column, $val, $where, $blobtype='BLOB') | |
| UpdateBlobFile ($table, $column, $val, $where, $blobtype='BLOB') | |
| & | Execute ($sql, $inputarr=false) |
| Prepare ($sql, $cursor=false) | |
| & | ExecuteCursor ($sql, $cursorName='rs', $params=false) |
| Bind (&$stmt, &$var, $size=4000, $type=false, $name=false, $isOutput=false) | |
| Param ($name, $type=false) | |
| Parameter (&$stmt, &$var, $name, $isOutput=false, $maxLen=4000, $type=false) | |
| _query ($sql, $inputarr) | |
| _close () | |
| MetaPrimaryKeys ($table, $owner=false, $internalKey=false) | |
| MetaForeignKeys ($table, $owner=false) | |
| CharMax () | |
| TextMax () | |
| qstr ($s, $magic_quotes=false) | |
Public Attributes | |
| $databaseType = 'oci8' | |
| $dataProvider = 'oci8' | |
| $replaceQuote = "''" | |
| string that represents FALSE for a database | |
| $concat_operator = '||' | |
| maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro | |
| $sysDate = "TRUNC(SYSDATE)" | |
| cache for 1 hour | |
| $sysTimeStamp = 'SYSDATE' | |
| name of function that returns the current date | |
| $metaDatabasesSQL = "SELECT USERNAME FROM ALL_USERS WHERE USERNAME NOT IN ('SYS','SYSTEM','DBSNMP','OUTLN') ORDER BY 1" | |
| character set to use - only for interbase, postgres and oci8 | |
| $_stmt | |
| $_commit = OCI_COMMIT_ON_SUCCESS | |
| $_initdate = true | |
| $metaTablesSQL = "select table_name,table_type from cat where table_type in ('TABLE','VIEW')" | |
| $metaColumnsSQL = "select cname,coltype,width, SCALE, PRECISION, NULLS, DEFAULTVAL from col where tname='%s' order by colno" | |
| $_bindInputArray = true | |
| A boolean variable to state whether its a persistent connection or normal connection. */. | |
| $hasGenID = true | |
| has ability to run MoveFirst(), scrolling backwards | |
| $_genIDSQL = "SELECT (%s.nextval) FROM DUAL" | |
| $_genSeqSQL = "CREATE SEQUENCE %s START WITH %s" | |
| $_dropSeqSQL = "DROP SEQUENCE %s" | |
| $hasAffectedRows = true | |
| supports autoincrement ID? | |
| $random = "abs(mod(DBMS_RANDOM.RANDOM,10000001)/10000000)" | |
| string length ofperator | |
| $noNullStrings = false | |
| name of class used to generate array recordsets, which are pre-downloaded recordsets | |
| $connectSID = false | |
| $_bind = false | |
| $_hasOCIFetchStatement = false | |
| $_getarray = false | |
| $leftOuter = '' | |
| indicates that all fields in order by must be unique | |
| $session_sharing_force_blob = false | |
| $firstrows = true | |
| $selectOffsetAlg1 = 100 | |
| $NLS_DATE_FORMAT = 'YYYY-MM-DD' | |
| $useDBDateFormatForTextInput = false | |
| $datetime = false | |
| $_refLOBs = array() | |
Definition at line 55 of file adodb-oci8.inc.php.
|
|
Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().
Reimplemented from ADOConnection. Definition at line 393 of file adodb-oci8.inc.php. References Execute(). Referenced by RowLock(). |
|
|
If database does not support transactions, always return true as data always commited
Reimplemented from ADOConnection. Definition at line 404 of file adodb-oci8.inc.php. References RollbackTrans(). |
|
|
Converts a date "d" to a string that the database can understand.
Reimplemented from ADOConnection. Definition at line 273 of file adodb-oci8.inc.php. References ADORecordSet::UnixDate(). |
|
|
Converts a timestamp "ts" to a string that the database can understand.
Reimplemented from ADOConnection. Definition at line 298 of file adodb-oci8.inc.php. References ADORecordSet::UnixTimeStamp(). |
|
|
Reimplemented from ADOConnection. Definition at line 432 of file adodb-oci8.inc.php. |
|
|
Reimplemented from ADOConnection. Definition at line 447 of file adodb-oci8.inc.php. |
|
||||||||||||
|
Execute SQL
Reimplemented from ADOConnection. Definition at line 740 of file adodb-oci8.inc.php. Referenced by _connect(), BeginTrans(), MetaColumns(), MetaIndexes(), Time(), and UpdateBlobFile(). |
|
||||||||||||||||
|
List indexes on a table as an array.
Reimplemented from ADOConnection. Definition at line 327 of file adodb-oci8.inc.php. References ADOConnection::$false, Execute(), and ADOConnection::SetFetchMode(). |
|
||||||||||||||||
|
Reimplemented from ADOConnection. Definition at line 311 of file adodb-oci8.inc.php. References ADOConnection::MetaTables(), and qstr(). |
|
||||||||||||
|
Quotes a string. An example is $db->qstr("Don't bother",magic_quotes_runtime());
Reimplemented from ADOConnection. Definition at line 1181 of file adodb-oci8.inc.php. Referenced by MetaTables(). |
|
|
If database does not support transactions, rollbacks always fail, so return false
Reimplemented from ADOConnection. Definition at line 416 of file adodb-oci8.inc.php. Referenced by CommitTrans(). |
|
|
Choose a database to connect to. Many databases do not support this.
Reimplemented from ADOConnection. Definition at line 427 of file adodb-oci8.inc.php. |
|
||||||||||||||||||||||||
|
Will select, getting rows from $offset (1-based), for $nrows. This simulates the MySQL "select * from table limit $offset,$nrows" , and the PostgreSQL "select * from table limit $nrows offset $offset". Note that MySQL and PostgreSQL parameter ordering is the opposite of the other. eg. SelectLimit('select * from table',3); will return rows 1 to 3 (1-based) SelectLimit('select * from table',3,2); will return rows 3 to 5 (1-based) Uses SELECT TOP for Microsoft databases (when $this->hasTop is set) BUG: Currently SelectLimit fails with $sql with LIMIT or TOP clause already set
Reimplemented from ADOConnection. Reimplemented in ADODB_oci805. Definition at line 558 of file adodb-oci8.inc.php. |
|
|
Get server version info...
Reimplemented from ADOConnection. Definition at line 242 of file adodb-oci8.inc.php. References ADOConnection::_findvers(), and ADOConnection::GetOne(). |
|
||||||||||||||||||||||||
|
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... Reimplemented from ADOConnection. Definition at line 673 of file adodb-oci8.inc.php. References ADOConnection::outp(). |
|
||||||||||||||||||||||||
|
Usage: store file pointed to by $var in a blob Reimplemented from ADOConnection. Definition at line 707 of file adodb-oci8.inc.php. References Execute(), and ADOConnection::outp(). |