DatabaseOracle Class Reference
[Database]

Inherits DatabaseBase.

List of all members.

Public Member Functions

 __construct ($server=false, $user=false, $password=false, $dbName=false, $failFunction=false, $flags=0, $tablePrefix= 'get from global')
 Constructor.
 getType ()
 Get the type of the DBMS, as it appears in $wgDBtype.
 cascadingDeletes ()
 Returns true if this database supports (and uses) cascading deletes.
 cleanupTriggers ()
 Returns true if this database supports (and uses) triggers (e.g.
 strictIPs ()
 Returns true if this database is strict about what can be put into an IP field.
 realTimestamps ()
 Returns true if this database uses timestamps rather than integers.
 implicitGroupby ()
 Returns true if this database does an implicit sort when doing GROUP BY.
 implicitOrderby ()
 Returns true if this database does an implicit order by when the column has an index For example: SELECT page_title FROM page LIMIT 1.
 searchableIPs ()
 Returns true if this database can do a native search on IP columns e.g.
 open ($server, $user, $password, $dbName)
 Usually aborts on failure If the failFunction is set to a non-zero integer, returns success.
 close ()
 Closes a database connection, if it is open Returns success, true if already closed.
 execFlags ()
 doQuery ($sql)
 The DBMS-dependent part of query().
 queryIgnore ($sql, $fname= '')
 freeResult ($res)
 Free a result object.
 fetchObject ($res)
 Fetch the next row from the given result object, in object form.
 fetchRow ($res)
 Fetch the next row from the given result object, in associative array form.
 numRows ($res)
 Get the number of rows in a result object.
 numFields ($res)
 Get the number of fields in a result object See documentation for mysql_num_fields().
 fieldName ($stmt, $n)
 Get a field name in a result object See documentation for mysql_field_name(): http://www.php.net/mysql_field_name.
 insertId ()
 This must be called after nextSequenceVal.
 dataSeek ($res, $row)
 Change the position of the cursor in a result object See mysql_data_seek().
 lastError ()
 Get a description of the last error See mysql_error() for more details.
 lastErrno ()
 Get the last error number See mysql_errno().
 affectedRows ()
 Get the number of rows affected by the last write query See mysql_affected_rows() for more details.
 indexInfo ($table, $index, $fname= 'DatabaseOracle::indexExists')
 Returns information about an index If errors are explicitly ignored, returns NULL on failure.
 indexUnique ($table, $index, $fname= 'DatabaseOracle::indexUnique')
 insert ($table, $a, $fname= 'DatabaseOracle::insert', $options=array())
 INSERT wrapper, inserts an array into a table.
 insertSelect ($destTable, $srcTable, $varMap, $conds, $fname= 'DatabaseOracle::insertSelect', $insertOptions=array(), $selectOptions=array())
 INSERT SELECT wrapper $varMap must be an associative array of the form array( 'dest1' => 'source1', .
 tableName ($name)
 Format a table name ready for use in constructing an SQL query.
 nextSequenceValue ($seqName)
 Return the next in a sequence, save the value for retrieval via insertId().
 replace ($table, $uniqueIndexes, $rows, $fname= 'DatabaseOracle::replace')
 REPLACE query wrapper PostgreSQL simulates this with a DELETE followed by INSERT $row is the row to insert, an associative array $uniqueIndexes is an array of indexes.
 deleteJoin ($delTable, $joinTable, $delVar, $joinVar, $conds, $fname="DatabaseOracle::deleteJoin")
 DELETE where the condition is a join MySQL does this with a multi-table DELETE syntax, PostgreSQL does it with sub-selects.
 textFieldSize ($table, $field)
 Returns the size of a text field, or -1 for "unlimited".
 limitResult ($sql, $limit, $offset=false)
 Construct a LIMIT query with optional offset.
 unionQueries ($sqls, $all)
 Construct a UNION query This is used for providing overload point for other DB abstractions not compatible with the MySQL syntax.
 wasDeadlock ()
 Determines if the last failure was due to a deadlock STUB.
 duplicateTableStructure ($oldName, $newName, $temporary=false, $fname= 'DatabaseOracle::duplicateTableStructure')
 Creates a new table with structure copied from existing table Note that unlike most database abstraction functions, this function does not automatically append database prefix, because it works at a lower abstraction level.
 timestamp ($ts=0)
 Return MW-style timestamp used for MySQL schema.
 aggregateValue ($valuedata, $valuename= 'value')
 Return aggregated value function call.
 reportQueryError ($error, $errno, $sql, $fname, $tempIgnore=false)
 getSoftwareLink ()
 getServerVersion ()
 tableExists ($table)
 Query whether a given table exists (in the given schema, or the default mw one if not given).
 fieldInfo ($table, $field)
 mysql_fetch_field() wrapper Returns false if the field doesn't exist
 fieldExists ($table, $field, $fname= 'DatabaseOracle::fieldExists')
 Determines whether a field exists in a table Usually aborts on failure If errors are explicitly ignored, returns NULL on failure.
 begin ($fname= '')
 Begin a transaction, committing any previously open transaction.
 immediateCommit ($fname= '')
 Commit transaction, if one is open.
 commit ($fname= '')
 End a transaction.
 limitResultForUpdate ($sql, $num)
 sourceStream ($fp, $lineCallback=false, $resultCallback=false)
 Read and execute commands from an open file handle Returns true on success, error string or exception on failure (depending on object's error ignore settings).
 setup_database ()
 strencode ($s)
 Wrapper for addslashes().
 addQuotes ($s)
 If it's a string, adds quotes and backslashes Otherwise returns as-is.
 quote_ident ($s)
 selectRow ($table, $vars, $conds, $fname= 'DatabaseOracle::selectRow', $options=array(), $join_conds=array())
 Single row SELECT wrapper Aborts or returns FALSE on error.
 makeSelectOptions ($options)
 Returns an optional USE INDEX clause to go after the table, and a string to go at the end of the query.
 delete ($table, $conds, $fname= 'DatabaseOracle::delete')
 DELETE query wrapper.
 bitNot ($field)
 Bitwise operations.
 bitAnd ($fieldLeft, $fieldRight)
 bitOr ($fieldLeft, $fieldRight)
 getLag ()
 How lagged is this slave?
 setFakeSlaveLag ($lag)
 Set lag time in seconds for a fake slave.
 setFakeMaster ($enabled=true)
 Make this connection a fake master.
 getDBname ()
 Get the current DB name.
 getServer ()
 Get the server hostname or IP address.
 replaceVars ($ins)
 Replace variables in sourced SQL.
 getSearchEngine ()
 Get search engine class.

Static Public Member Functions

static newFromParams ($server, $user, $password, $dbName, $failFunction=false, $flags=0)
 Same as new DatabaseMysql( .

Public Attributes

 $mInsertId = null
 $mLastResult = null
 $numeric_version = null
 $lastResult = null
 $cursor = 0
 $mAffectedRows
 $ignore_DUP_VAL_ON_INDEX = false
 $sequenceData = null
 $defaultCharset = 'AL32UTF8'
 $mFieldInfoCache = array()

Private Member Functions

 insertOneRow ($table, $row, $fname)
 getSequenceData ($table)
 Return sequence_name if table has a sequence.
 fieldInfoMulti ($table, $field)
 Function translates mysql_fetch_field() functionality on ORACLE.


Detailed Description

Definition at line 172 of file DatabaseOracle.php.


Constructor & Destructor Documentation

DatabaseOracle::__construct ( server = false,
user = false,
password = false,
dbName = false,
failFunction = false,
flags = 0,
tablePrefix = 'get from global' 
)

Constructor.

Parameters:
$server String: database server host
$user String: database user name
$password String: database user password
$dbName String: database name
$failFunction 
$flags 
$tablePrefix String: database table prefixes. By default use the prefix gave in LocalSettings.php

Reimplemented from DatabaseBase.

Definition at line 187 of file DatabaseOracle.php.

References wfRunHooks().


Member Function Documentation

DatabaseOracle::addQuotes ( s  ) 

If it's a string, adds quotes and backslashes Otherwise returns as-is.

Reimplemented from DatabaseBase.

Definition at line 1038 of file DatabaseOracle.php.

References $s, and $wgLang.

DatabaseOracle::affectedRows (  ) 

Get the number of rows affected by the last write query See mysql_affected_rows() for more details.

Reimplemented from DatabaseBase.

Definition at line 414 of file DatabaseOracle.php.

DatabaseOracle::aggregateValue ( valuedata,
valuename = 'value' 
)

Return aggregated value function call.

Reimplemented from DatabaseBase.

Definition at line 800 of file DatabaseOracle.php.

DatabaseOracle::begin ( fname = ''  ) 

Begin a transaction, committing any previously open transaction.

Reimplemented from DatabaseBase.

Definition at line 912 of file DatabaseOracle.php.

DatabaseOracle::bitAnd ( fieldLeft,
fieldRight 
)

Reimplemented from DatabaseBase.

Definition at line 1147 of file DatabaseOracle.php.

DatabaseOracle::bitNot ( field  ) 

Bitwise operations.

Reimplemented from DatabaseBase.

Definition at line 1142 of file DatabaseOracle.php.

DatabaseOracle::bitOr ( fieldLeft,
fieldRight 
)

Reimplemented from DatabaseBase.

Definition at line 1151 of file DatabaseOracle.php.

DatabaseOracle::cascadingDeletes (  ) 

Returns true if this database supports (and uses) cascading deletes.

Reimplemented from DatabaseBase.

Definition at line 199 of file DatabaseOracle.php.

DatabaseOracle::cleanupTriggers (  ) 

Returns true if this database supports (and uses) triggers (e.g.

on the page table)

Reimplemented from DatabaseBase.

Definition at line 202 of file DatabaseOracle.php.

DatabaseOracle::close (  ) 

Closes a database connection, if it is open Returns success, true if already closed.

Reimplemented from DatabaseBase.

Definition at line 271 of file DatabaseOracle.php.

Referenced by open().

DatabaseOracle::commit ( fname = ''  ) 

End a transaction.

Reimplemented from DatabaseBase.

Definition at line 920 of file DatabaseOracle.php.

DatabaseOracle::dataSeek ( res,
row 
)

Change the position of the cursor in a result object See mysql_data_seek().

Parameters:
$res Mixed: A SQL result
$row Mixed: Either MySQL row or ResultWrapper

Reimplemented from DatabaseBase.

Definition at line 388 of file DatabaseOracle.php.

References $res.

DatabaseOracle::delete ( table,
conds,
fname = 'DatabaseOracle::delete' 
)

DELETE query wrapper.

Use $conds == "*" to delete all rows

Reimplemented from DatabaseBase.

Definition at line 1113 of file DatabaseOracle.php.

References $wgLang.

DatabaseOracle::deleteJoin ( delTable,
joinTable,
delVar,
joinVar,
conds,
fname = "DatabaseOracle::deleteJoin" 
)

DELETE where the condition is a join MySQL does this with a multi-table DELETE syntax, PostgreSQL does it with sub-selects.

For safety, an empty $conds will not delete everything. If you want to delete all rows where the join condition matches, set $conds='*'

DO NOT put the join condition in $conds

Parameters:
$delTable String: The table to delete from.
$joinTable String: The other table.
$delVar String: The variable to join on, in the first table.
$joinVar String: The variable to join on, in the second table.
$conds Array: Condition array of field names mapped to variables, ANDed together in the WHERE clause
$fname String: Calling function name (use __METHOD__) for logs/profiling

Reimplemented from DatabaseBase.

Definition at line 723 of file DatabaseOracle.php.

References $fname.

DatabaseOracle::doQuery ( sql  ) 

The DBMS-dependent part of query().

Parameters:
$sql String: SQL query.
Returns:
Result object to feed to fetchObject, fetchRow, ...; or false on failure

Reimplemented from DatabaseBase.

Definition at line 284 of file DatabaseOracle.php.

References wfDebug().

Referenced by open().

DatabaseOracle::duplicateTableStructure ( oldName,
newName,
temporary = false,
fname = 'DatabaseOracle::duplicateTableStructure' 
)

Creates a new table with structure copied from existing table Note that unlike most database abstraction functions, this function does not automatically append database prefix, because it works at a lower abstraction level.

Parameters:
$oldName String: name of table whose structure should be copied
$newName String: name of table to be created
$temporary Boolean: whether the new table should be temporary
Returns:
Boolean: true if operation was successful

Reimplemented from DatabaseBase.

Definition at line 768 of file DatabaseOracle.php.

References $i.

DatabaseOracle::execFlags (  ) 

Definition at line 280 of file DatabaseOracle.php.

DatabaseOracle::fetchObject ( res  ) 

Fetch the next row from the given result object, in object form.

Fields can be retrieved with $row->fieldname, with fields acting like member variables.

Parameters:
$res SQL result object as returned from Database::query(), etc.
Returns:
MySQL row object
Exceptions:
DBUnexpectedError Thrown if the database returns an error

Reimplemented from DatabaseBase.

Definition at line 345 of file DatabaseOracle.php.

References $res.

DatabaseOracle::fetchRow ( res  ) 

Fetch the next row from the given result object, in associative array form.

Fields are retrieved with $row['fieldname'].

Parameters:
$res SQL result object as returned from Database::query(), etc.
Returns:
MySQL row object
Exceptions:
DBUnexpectedError Thrown if the database returns an error

Reimplemented from DatabaseBase.

Definition at line 353 of file DatabaseOracle.php.

References $res.

DatabaseOracle::fieldExists ( table,
field,
fname = 'DatabaseOracle::fieldExists' 
)

Determines whether a field exists in a table Usually aborts on failure If errors are explicitly ignored, returns NULL on failure.

Reimplemented from DatabaseBase.

Definition at line 908 of file DatabaseOracle.php.

DatabaseOracle::fieldInfo ( table,
field 
)

mysql_fetch_field() wrapper Returns false if the field doesn't exist

Parameters:
$table 
$field 

Reimplemented from DatabaseBase.

Definition at line 901 of file DatabaseOracle.php.

DatabaseOracle::fieldInfoMulti ( table,
field 
) [private]

Function translates mysql_fetch_field() functionality on ORACLE.

Caching is present for reducing query time. For internal calls. Use fieldInfo for normal usage. Returns false if the field doesn't exist

Parameters:
Array $table
String $field

Definition at line 856 of file DatabaseOracle.php.

DatabaseOracle::fieldName ( res,
n 
)

Get a field name in a result object See documentation for mysql_field_name(): http://www.php.net/mysql_field_name.

Parameters:
$res Mixed: A SQL result
$n Integer

Reimplemented from DatabaseBase.

Definition at line 377 of file DatabaseOracle.php.

References $n.

DatabaseOracle::freeResult ( res  ) 

Free a result object.

Parameters:
$res Mixed: A SQL result

Reimplemented from DatabaseBase.

Definition at line 337 of file DatabaseOracle.php.

References $res.

DatabaseOracle::getDBname (  ) 

Get the current DB name.

Reimplemented from DatabaseBase.

Definition at line 1168 of file DatabaseOracle.php.

DatabaseOracle::getLag (  ) 

How lagged is this slave?

Returns:
int

Reimplemented from DatabaseBase.

Definition at line 1160 of file DatabaseOracle.php.

DatabaseOracle::getSearchEngine (  ) 

Get search engine class.

All subclasses of this need to implement this if they wish to use searching.

Returns:
String

Reimplemented from DatabaseBase.

Definition at line 1196 of file DatabaseOracle.php.

DatabaseOracle::getSequenceData ( table  )  [private]

Return sequence_name if table has a sequence.

Definition at line 664 of file DatabaseOracle.php.

References $result.

DatabaseOracle::getServer (  ) 

Get the server hostname or IP address.

Reimplemented from DatabaseBase.

Definition at line 1172 of file DatabaseOracle.php.

DatabaseOracle::getServerVersion (  ) 

Returns:
string Version information from the database

Reimplemented from DatabaseBase.

Definition at line 828 of file DatabaseOracle.php.

DatabaseOracle::getSoftwareLink (  ) 

Returns:
string wikitext of a link to the server software's web site

Reimplemented from DatabaseBase.

Definition at line 821 of file DatabaseOracle.php.

DatabaseOracle::getType (  ) 

Get the type of the DBMS, as it appears in $wgDBtype.

Reimplemented from DatabaseBase.

Definition at line 195 of file DatabaseOracle.php.

DatabaseOracle::immediateCommit ( fname = ''  ) 

Commit transaction, if one is open.

Deprecated:
use commit()

Reimplemented from DatabaseBase.

Definition at line 916 of file DatabaseOracle.php.

DatabaseOracle::implicitGroupby (  ) 

Returns true if this database does an implicit sort when doing GROUP BY.

Reimplemented from DatabaseBase.

Definition at line 211 of file DatabaseOracle.php.

DatabaseOracle::implicitOrderby (  ) 

Returns true if this database does an implicit order by when the column has an index For example: SELECT page_title FROM page LIMIT 1.

Reimplemented from DatabaseBase.

Definition at line 214 of file DatabaseOracle.php.

DatabaseOracle::indexInfo ( table,
index,
fname = 'DatabaseOracle::indexExists' 
)

Returns information about an index If errors are explicitly ignored, returns NULL on failure.

Reimplemented from DatabaseBase.

Definition at line 422 of file DatabaseOracle.php.

DatabaseOracle::indexUnique ( table,
index,
fname = 'DatabaseOracle::indexUnique' 
)

Definition at line 426 of file DatabaseOracle.php.

DatabaseOracle::insert ( table,
a,
fname = 'DatabaseOracle::insert',
options = array() 
)

INSERT wrapper, inserts an array into a table.

$a may be a single associative array, or an array of these with numeric keys, for multi-row insert.

Usually aborts on failure If errors are explicitly ignored, returns success

Reimplemented from DatabaseBase.

Definition at line 430 of file DatabaseOracle.php.

References $fname, and $options.

DatabaseOracle::insertId (  ) 

This must be called after nextSequenceVal.

Reimplemented from DatabaseBase.

Definition at line 384 of file DatabaseOracle.php.

DatabaseOracle::insertOneRow ( table,
row,
fname 
) [private]

Definition at line 459 of file DatabaseOracle.php.

References $wgLang, wfRestoreWarnings(), and wfSuppressWarnings().

DatabaseOracle::insertSelect ( destTable,
srcTable,
varMap,
conds,
fname = 'DatabaseOracle::insertSelect',
insertOptions = array(),
selectOptions = array() 
)

INSERT SELECT wrapper $varMap must be an associative array of the form array( 'dest1' => 'source1', .

..) Source items may be literals rather than field names, but strings should be quoted with Database::addQuotes() $conds may be "*" to copy the whole table srcTable may be an array of tables.

Reimplemented from DatabaseBase.

Definition at line 547 of file DatabaseOracle.php.

DatabaseOracle::lastErrno (  ) 

Get the last error number See mysql_errno().

Reimplemented from DatabaseBase.

Definition at line 405 of file DatabaseOracle.php.

DatabaseOracle::lastError (  ) 

Get a description of the last error See mysql_error() for more details.

Reimplemented from DatabaseBase.

Definition at line 396 of file DatabaseOracle.php.

Referenced by open().

DatabaseOracle::limitResult ( sql,
limit,
offset = false 
)

Construct a LIMIT query with optional offset.

This is used for query pages. The SQL should be adjusted so that only the first $limit rows are returned. If $offset is provided as well, then the first $offset rows should be discarded, and the next $limit rows should be returned. If the result of the query is not ordered, then the rows to be returned are theoretically arbitrary.

$sql is expected to be a SELECT, if that makes a difference. For UPDATE, limitResultForUpdate should be used.

The version provided by default works in MySQL and SQLite. It will very likely need to be overridden for most other DBMSes.

Parameters:
$sql String: SQL query we will append the limit too
$limit Integer: the SQL limit
$offset Integer the SQL offset (default false)

Reimplemented from DatabaseBase.

Definition at line 750 of file DatabaseOracle.php.

DatabaseOracle::limitResultForUpdate ( sql,
num 
)

Reimplemented from DatabaseBase.

Definition at line 926 of file DatabaseOracle.php.

DatabaseOracle::makeSelectOptions ( options  ) 

Returns an optional USE INDEX clause to go after the table, and a string to go at the end of the query.

Access:
private
Parameters:
$options Array: an associative array of options to be turned into an SQL query, valid keys are listed in the function.
Returns:
array

Reimplemented from DatabaseBase.

Definition at line 1080 of file DatabaseOracle.php.

References $options.

static DatabaseOracle::newFromParams ( server,
user,
password,
dbName,
failFunction = false,
flags = 0 
) [static]

Same as new DatabaseMysql( .

.. ), kept for backward compatibility

Parameters:
$server String: database server host
$user String: database user name
$password String: database user password
$dbName String: database name
failFunction 
$flags 

Reimplemented from DatabaseBase.

Definition at line 221 of file DatabaseOracle.php.

DatabaseOracle::nextSequenceValue ( seqName  ) 

Return the next in a sequence, save the value for retrieval via insertId().

Reimplemented from DatabaseBase.

Definition at line 653 of file DatabaseOracle.php.

References $res.

DatabaseOracle::numFields ( res  ) 

Get the number of fields in a result object See documentation for mysql_num_fields().

Parameters:
$res Mixed: A SQL result

Reimplemented from DatabaseBase.

Definition at line 369 of file DatabaseOracle.php.

References $res.

DatabaseOracle::numRows ( res  ) 

Get the number of rows in a result object.

Parameters:
$res Mixed: A SQL result

Reimplemented from DatabaseBase.

Definition at line 361 of file DatabaseOracle.php.

References $res.

DatabaseOracle::open ( server,
user,
password,
dbName 
)

Usually aborts on failure If the failFunction is set to a non-zero integer, returns success.

Reimplemented from DatabaseBase.

Definition at line 230 of file DatabaseOracle.php.

References close(), doQuery(), lastError(), and wfDebug().

DatabaseOracle::queryIgnore ( sql,
fname = '' 
)

Definition at line 333 of file DatabaseOracle.php.

References $fname.

DatabaseOracle::quote_ident ( s  ) 

Definition at line 1046 of file DatabaseOracle.php.

References $s.

DatabaseOracle::realTimestamps (  ) 

Returns true if this database uses timestamps rather than integers.

Reimplemented from DatabaseBase.

Definition at line 208 of file DatabaseOracle.php.

DatabaseOracle::replace ( table,
uniqueIndexes,
rows,
fname = 'DatabaseOracle::replace' 
)

REPLACE query wrapper PostgreSQL simulates this with a DELETE followed by INSERT $row is the row to insert, an associative array $uniqueIndexes is an array of indexes.

Each element may be either a field name or an array of field names

It may be more efficient to leave off unique indexes which are unlikely to collide. However if you do this, you run the risk of encountering errors which wouldn't have occurred in MySQL

Todo:
migrate comment to phodocumentor format

Reimplemented from DatabaseBase.

Definition at line 688 of file DatabaseOracle.php.

References $fname, and $rows.

DatabaseOracle::replaceVars ( ins  ) 

Replace variables in sourced SQL.

Reimplemented from DatabaseBase.

Definition at line 1176 of file DatabaseOracle.php.

DatabaseOracle::reportQueryError ( error,
errno,
sql,
fname,
tempIgnore = false 
)

Parameters:
$error String
$errno Integer
$sql String
$fname String
$tempIgnore Boolean

Reimplemented from DatabaseBase.

Definition at line 804 of file DatabaseOracle.php.

DatabaseOracle::searchableIPs (  ) 

Returns true if this database can do a native search on IP columns e.g.

this works as expected: .. WHERE rc_ip = '127.42.12.102/32';

Reimplemented from DatabaseBase.

Definition at line 217 of file DatabaseOracle.php.

DatabaseOracle::selectRow ( table,
vars,
conds,
fname = 'DatabaseOracle::selectRow',
options = array(),
join_conds = array() 
)

Single row SELECT wrapper Aborts or returns FALSE on error.

Parameters:
$table String: table name
$vars String: the selected variables
$conds Array: a condition map, terms are ANDed together. Items with numeric keys are taken to be literal conditions Takes an array of selected variables, and a condition map, which is ANDed e.g: selectRow( "page", array( "page_id" ), array( "page_namespace" => NS_MAIN, "page_title" => "Astronomy" ) ) would return an object where $obj- >page_id is the ID of the Astronomy article
$fname String: Calling function name
$options Array
$join_conds Array
Todo:
migrate documentation to phpdocumentor format

Reimplemented from DatabaseBase.

Definition at line 1050 of file DatabaseOracle.php.

References $fname, $options, and $wgLang.

DatabaseOracle::setFakeMaster ( enabled = true  ) 

Make this connection a fake master.

Reimplemented from DatabaseBase.

Definition at line 1166 of file DatabaseOracle.php.

DatabaseOracle::setFakeSlaveLag ( lag  ) 

Set lag time in seconds for a fake slave.

Reimplemented from DatabaseBase.

Definition at line 1165 of file DatabaseOracle.php.

DatabaseOracle::setup_database (  ) 

Definition at line 1002 of file DatabaseOracle.php.

References $res, $wgDBmwschema, $wgDBport, $wgDBts2schema, $wgDBuser, $wgVersion, and print.

DatabaseOracle::sourceStream ( fp,
lineCallback = false,
resultCallback = false 
)

Read and execute commands from an open file handle Returns true on success, error string or exception on failure (depending on object's error ignore settings).

Parameters:
$fp String: File handle
$lineCallback Callback: Optional function called before reading each line
$resultCallback Callback: Optional function called for each MySQL result

Reimplemented from DatabaseBase.

Definition at line 931 of file DatabaseOracle.php.

DatabaseOracle::strencode ( s  ) 

Wrapper for addslashes().

Parameters:
$s String: to be slashed.
Returns:
String: slashed string.

Reimplemented from DatabaseBase.

Definition at line 1034 of file DatabaseOracle.php.

References $s.

DatabaseOracle::strictIPs (  ) 

Returns true if this database is strict about what can be put into an IP field.

Specifically, it uses a NULL value instead of an empty string.

Reimplemented from DatabaseBase.

Definition at line 205 of file DatabaseOracle.php.

DatabaseOracle::tableExists ( table  ) 

Query whether a given table exists (in the given schema, or the default mw one if not given).

Reimplemented from DatabaseBase.

Definition at line 835 of file DatabaseOracle.php.

References $res.

DatabaseOracle::tableName ( name  ) 

Format a table name ready for use in constructing an SQL query.

This does two important things: it quotes the table names to clean them up, and it adds a table prefix if only given a table name with no quotes.

All functions of this object which require a table name call this function themselves. Pass the canonical name to such functions. This is only needed when calling query() directly.

Parameters:
$name String: database table name
Returns:
String: full database name

Reimplemented from DatabaseBase.

Definition at line 592 of file DatabaseOracle.php.

References $name.

DatabaseOracle::textFieldSize ( table,
field 
)

Returns the size of a text field, or -1 for "unlimited".

Reimplemented from DatabaseBase.

Definition at line 740 of file DatabaseOracle.php.

References $size.

DatabaseOracle::timestamp ( ts = 0  ) 

Return MW-style timestamp used for MySQL schema.

Reimplemented from DatabaseBase.

Definition at line 793 of file DatabaseOracle.php.

DatabaseOracle::unionQueries ( sqls,
all 
)

Construct a UNION query This is used for providing overload point for other DB abstractions not compatible with the MySQL syntax.

Parameters:
$sqls Array: SQL statements to combine
$all Boolean: use UNION ALL
Returns:
String: SQL fragment

Reimplemented from DatabaseBase.

Definition at line 758 of file DatabaseOracle.php.

DatabaseOracle::wasDeadlock (  ) 

Determines if the last failure was due to a deadlock STUB.

Reimplemented from DatabaseBase.

Definition at line 763 of file DatabaseOracle.php.


Member Data Documentation

DatabaseOracle::$cursor = 0

Definition at line 177 of file DatabaseOracle.php.

DatabaseOracle::$defaultCharset = 'AL32UTF8'

Definition at line 183 of file DatabaseOracle.php.

DatabaseOracle::$ignore_DUP_VAL_ON_INDEX = false

Definition at line 180 of file DatabaseOracle.php.

DatabaseOracle::$lastResult = null

Definition at line 176 of file DatabaseOracle.php.

DatabaseOracle::$mAffectedRows

Definition at line 178 of file DatabaseOracle.php.

DatabaseOracle::$mFieldInfoCache = array()

Definition at line 185 of file DatabaseOracle.php.

DatabaseOracle::$mInsertId = null

Definition at line 173 of file DatabaseOracle.php.

DatabaseOracle::$mLastResult = null

Definition at line 174 of file DatabaseOracle.php.

DatabaseOracle::$numeric_version = null

Definition at line 175 of file DatabaseOracle.php.

DatabaseOracle::$sequenceData = null

Definition at line 181 of file DatabaseOracle.php.


The documentation for this class was generated from the following file:

Generated on Sat Apr 30 22:57:35 2011 for MediaWiki by  doxygen 1.5.9