MediaWiki REL1_28
|
Public Member Functions | |
__construct (array $p) | |
__destruct () | |
addIdentifierQuotes ( $s) | |
addQuotes ( $s) | |
affectedRows () | |
aggregateValue ( $valuedata, $valuename='value') | |
Return aggregated value function call. | |
bitAnd ( $fieldLeft, $fieldRight) | |
bitNot ( $field) | |
bitOr ( $fieldLeft, $fieldRight) | |
buildGroupConcatField ( $delim, $table, $field, $conds='', $join_conds=[]) | |
buildStringCast ( $field) | |
dataSeek ( $res, $row) | |
decodeBlob ( $b) | |
delete ( $table, $conds, $fname=__METHOD__) | |
dropTable ( $tableName, $fName=__METHOD__) | |
duplicateTableStructure ( $oldName, $newName, $temporary=false, $fname=__METHOD__) | |
encodeBlob ( $b) | |
execFlags () | |
fetchObject ( $res) | |
fetchRow ( $res) | |
fieldInfo ( $table, $field) | |
fieldName ( $stmt, $n) | |
freeResult ( $res) | |
Frees resources associated with the LOB descriptor. | |
getDBname () | |
getInfinity () | |
getServer () | |
getServerVersion () | |
getSoftwareLink () | |
getType () | |
implicitGroupby () | |
implicitOrderby () | |
indexExists ( $table, $index, $fname=__METHOD__) | |
Query whether a given index exists. | |
indexInfo ( $table, $index, $fname=__METHOD__) | |
Returns information about an index If errors are explicitly ignored, returns NULL on failure. | |
indexUnique ( $table, $index, $fname=__METHOD__) | |
insert ( $table, $a, $fname=__METHOD__, $options=[]) | |
insertId () | |
This must be called after nextSequenceVal. | |
isQuotedIdentifier ( $s) | |
lastErrno () | |
lastError () | |
limitResult ( $sql, $limit, $offset=false) | |
listTables ( $prefix=null, $fname=__METHOD__) | |
makeSelectOptions ( $options) | |
Returns an optional USE INDEX clause to go after the table, and a string to go at the end of the query. | |
nativeInsertSelect ( $destTable, $srcTable, $varMap, $conds, $fname=__METHOD__, $insertOptions=[], $selectOptions=[]) | |
nextSequenceValue ( $seqName) | |
Return the next in a sequence, save the value for retrieval via insertId() | |
numFields ( $res) | |
numRows ( $res) | |
open ( $server, $user, $password, $dbName) | |
Usually aborts on failure. | |
queryIgnore ( $sql, $fname='') | |
removeIdentifierQuotes ( $s) | |
selectDB ( $db) | |
selectRow ( $table, $vars, $conds, $fname=__METHOD__, $options=[], $join_conds=[]) | |
sourceStream ( $fp, $lineCallback=false, $resultCallback=false, $fname=__METHOD__, $inputCallback=false) | |
defines must comply with ^define\s*([^\s=]*)\s*=\s?'\{\$([^\}]*)\}'; | |
strencode ( $s) | |
tableExists ( $table, $fname=__METHOD__) | |
Query whether a given table exists (in the given schema, or the default mw one if not given) | |
tableName ( $name, $format='quoted') | |
tableNameInternal ( $name) | |
textFieldSize ( $table, $field) | |
Returns the size of a text field, or -1 for "unlimited". | |
timestamp ( $ts=0) | |
unionQueries ( $sqls, $all) | |
update ( $table, $values, $conds, $fname=__METHOD__, $options=[]) | |
upsert ( $table, array $rows, array $uniqueIndexes, array $set, $fname=__METHOD__) | |
wasDeadlock () | |
Protected Member Functions | |
closeConnection () | |
Closes a database connection, if it is open Returns success, true if already closed. | |
doBegin ( $fname=__METHOD__) | |
doCommit ( $fname=__METHOD__) | |
doQuery ( $sql) | |
doRollback ( $fname=__METHOD__) | |
Protected Attributes | |
int | $mAffectedRows |
The number of rows affected as an integer. | |
resource | $mLastResult = null |
Private Member Functions | |
fieldBindStatement ( $table, $col, &$val, $includeCol=false) | |
fieldInfoMulti ( $table, $field) | |
Function translates mysql_fetch_field() functionality on ORACLE. | |
getSequenceData ( $table) | |
Return sequence_name if table has a sequence. | |
insertOneRow ( $table, $row, $fname) | |
wrapConditionsForWhere ( $table, $conds, $parentCol=null) | |
wrapFieldForWhere ( $table, &$col, &$val) | |
Private Attributes | |
string | $defaultCharset = 'AL32UTF8' |
Character set for Oracle database. | |
bool | $ignoreDupValOnIndex = false |
array | $mFieldInfoCache = [] |
int | $mInsertId = null |
bool array | $sequenceData = null |
Definition at line 134 of file DatabaseOracle.php.
DatabaseOracle::__construct | ( | array | $p | ) |
Definition at line 156 of file DatabaseOracle.php.
References $wgDBprefix, and global.
DatabaseOracle::__destruct | ( | ) |
Definition at line 167 of file DatabaseOracle.php.
DatabaseOracle::addIdentifierQuotes | ( | $s | ) |
Definition at line 1211 of file DatabaseOracle.php.
References $s, and DBO_DDLMODE.
DatabaseOracle::addQuotes | ( | $s | ) |
Definition at line 1202 of file DatabaseOracle.php.
References $s, $wgContLang, and global.
DatabaseOracle::affectedRows | ( | ) |
Definition at line 463 of file DatabaseOracle.php.
DatabaseOracle::aggregateValue | ( | $valuedata, | |
$valuename = 'value' |
|||
) |
Return aggregated value function call.
array | $valuedata | |
string | $valuename |
Definition at line 913 of file DatabaseOracle.php.
DatabaseOracle::bitAnd | ( | $fieldLeft, | |
$fieldRight | |||
) |
Definition at line 1467 of file DatabaseOracle.php.
DatabaseOracle::bitNot | ( | $field | ) |
Definition at line 1462 of file DatabaseOracle.php.
DatabaseOracle::bitOr | ( | $fieldLeft, | |
$fieldRight | |||
) |
Definition at line 1471 of file DatabaseOracle.php.
DatabaseOracle::buildGroupConcatField | ( | $delim, | |
$table, | |||
$field, | |||
$conds = '' , |
|||
$join_conds = [] |
|||
) |
Definition at line 1483 of file DatabaseOracle.php.
DatabaseOracle::buildStringCast | ( | $field | ) |
string | $field | Field or column to cast |
Definition at line 1496 of file DatabaseOracle.php.
|
protected |
Closes a database connection, if it is open Returns success, true if already closed.
Definition at line 287 of file DatabaseOracle.php.
DatabaseOracle::dataSeek | ( | $res, | |
$row | |||
) |
DatabaseOracle::decodeBlob | ( | $b | ) |
Definition at line 833 of file DatabaseOracle.php.
DatabaseOracle::delete | ( | $table, | |
$conds, | |||
$fname = __METHOD__ |
|||
) |
Definition at line 1314 of file DatabaseOracle.php.
References $fname, and tableName().
|
protected |
Definition at line 1064 of file DatabaseOracle.php.
|
protected |
Definition at line 1069 of file DatabaseOracle.php.
References $ret.
|
protected |
Definition at line 295 of file DatabaseOracle.php.
References code, DBO_DDLMODE, FROM, MWTimestamp\getLocalInstance(), StringUtils\isUtf8(), message, and wfDebug().
Referenced by open().
|
protected |
Definition at line 1080 of file DatabaseOracle.php.
DatabaseOracle::dropTable | ( | $tableName, | |
$fName = __METHOD__ |
|||
) |
Definition at line 893 of file DatabaseOracle.php.
References tableName().
DatabaseOracle::duplicateTableStructure | ( | $oldName, | |
$newName, | |||
$temporary = false , |
|||
$fname = __METHOD__ |
|||
) |
Definition at line 852 of file DatabaseOracle.php.
DatabaseOracle::encodeBlob | ( | $b | ) |
Definition at line 829 of file DatabaseOracle.php.
DatabaseOracle::execFlags | ( | ) |
Definition at line 291 of file DatabaseOracle.php.
DatabaseOracle::fetchObject | ( | $res | ) |
ResultWrapper | ORAResult | $res |
Definition at line 375 of file DatabaseOracle.php.
References $res.
DatabaseOracle::fetchRow | ( | $res | ) |
ResultWrapper | ORAResult | $res |
Definition at line 387 of file DatabaseOracle.php.
References $res.
|
private |
Definition at line 512 of file DatabaseOracle.php.
DatabaseOracle::fieldInfo | ( | $table, | |
$field | |||
) |
DBUnexpectedError |
string | $table | |
string | $field |
Definition at line 1056 of file DatabaseOracle.php.
|
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
array | string | $table | |
string | $field |
Definition at line 998 of file DatabaseOracle.php.
DatabaseOracle::fieldName | ( | $stmt, | |
$n | |||
) |
Definition at line 419 of file DatabaseOracle.php.
DatabaseOracle::freeResult | ( | $res | ) |
Frees resources associated with the LOB descriptor.
ResultWrapper | ORAResult | $res |
Definition at line 363 of file DatabaseOracle.php.
References $res.
DatabaseOracle::getDBname | ( | ) |
Definition at line 1475 of file DatabaseOracle.php.
DatabaseOracle::getInfinity | ( | ) |
Definition at line 1500 of file DatabaseOracle.php.
|
private |
Return sequence_name if table has a sequence.
string | $table |
Definition at line 780 of file DatabaseOracle.php.
References tableName().
DatabaseOracle::getServer | ( | ) |
Definition at line 1479 of file DatabaseOracle.php.
DatabaseOracle::getServerVersion | ( | ) |
Definition at line 927 of file DatabaseOracle.php.
DatabaseOracle::getSoftwareLink | ( | ) |
Definition at line 920 of file DatabaseOracle.php.
DatabaseOracle::getType | ( | ) |
Definition at line 175 of file DatabaseOracle.php.
DatabaseOracle::implicitGroupby | ( | ) |
Definition at line 179 of file DatabaseOracle.php.
DatabaseOracle::implicitOrderby | ( | ) |
Definition at line 183 of file DatabaseOracle.php.
DatabaseOracle::indexExists | ( | $table, | |
$index, | |||
$fname = __METHOD__ |
|||
) |
Query whether a given index exists.
string | $table | |
string | $index | |
string | $fname |
Definition at line 948 of file DatabaseOracle.php.
References $count, $res, and tableName().
DatabaseOracle::indexInfo | ( | $table, | |
$index, | |||
$fname = __METHOD__ |
|||
) |
Returns information about an index If errors are explicitly ignored, returns NULL on failure.
string | $table | |
string | $index | |
string | $fname |
Definition at line 475 of file DatabaseOracle.php.
DatabaseOracle::indexUnique | ( | $table, | |
$index, | |||
$fname = __METHOD__ |
|||
) |
Definition at line 479 of file DatabaseOracle.php.
DatabaseOracle::insert | ( | $table, | |
$a, | |||
$fname = __METHOD__ , |
|||
$options = [] |
|||
) |
Definition at line 483 of file DatabaseOracle.php.
DatabaseOracle::insertId | ( | ) |
This must be called after nextSequenceVal.
Definition at line 427 of file DatabaseOracle.php.
|
private |
string | $table | |
array | $row | |
string | $fname |
DBUnexpectedError |
Definition at line 554 of file DatabaseOracle.php.
References $e, $wgContLang, as, false, global, and tableName().
DatabaseOracle::isQuotedIdentifier | ( | $s | ) |
Definition at line 1223 of file DatabaseOracle.php.
References $s.
DatabaseOracle::lastErrno | ( | ) |
Definition at line 453 of file DatabaseOracle.php.
References $e.
DatabaseOracle::lastError | ( | ) |
DatabaseOracle::limitResult | ( | $sql, | |
$limit, | |||
$offset = false |
|||
) |
Definition at line 821 of file DatabaseOracle.php.
DatabaseOracle::listTables | ( | $prefix = null , |
|
$fname = __METHOD__ |
|||
) |
Definition at line 868 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.
array | $options | An associative array of options to be turned into an SQL query, valid keys are listed in the function. |
Definition at line 1276 of file DatabaseOracle.php.
DatabaseOracle::nativeInsertSelect | ( | $destTable, | |
$srcTable, | |||
$varMap, | |||
$conds, | |||
$fname = __METHOD__ , |
|||
$insertOptions = [] , |
|||
$selectOptions = [] |
|||
) |
Definition at line 661 of file DatabaseOracle.php.
References list, and tableName().
DatabaseOracle::nextSequenceValue | ( | $seqName | ) |
Return the next in a sequence, save the value for retrieval via insertId()
string | $seqName |
Definition at line 766 of file DatabaseOracle.php.
DatabaseOracle::numFields | ( | $res | ) |
ResultWrapper | ORAResult | $res |
Definition at line 411 of file DatabaseOracle.php.
References $res.
DatabaseOracle::numRows | ( | $res | ) |
ResultWrapper | ORAResult | $res |
Definition at line 399 of file DatabaseOracle.php.
References $res.
DatabaseOracle::open | ( | $server, | |
$user, | |||
$password, | |||
$dbName | |||
) |
Usually aborts on failure.
string | $server | |
string | $user | |
string | $password | |
string | $dbName |
DBConnectionError |
Definition at line 196 of file DatabaseOracle.php.
References $user, $wgDBOracleDRCP, DBO_DEFAULT, DBO_PERSISTENT, DBO_SYSDBA, doQuery(), e, global, is(), lastError(), return, and selectDB().
DatabaseOracle::queryIgnore | ( | $sql, | |
$fname = '' |
|||
) |
Definition at line 355 of file DatabaseOracle.php.
DatabaseOracle::removeIdentifierQuotes | ( | $s | ) |
Definition at line 1219 of file DatabaseOracle.php.
References $s.
DatabaseOracle::selectDB | ( | $db | ) |
Definition at line 1176 of file DatabaseOracle.php.
Referenced by open().
DatabaseOracle::selectRow | ( | $table, | |
$vars, | |||
$conds, | |||
$fname = __METHOD__ , |
|||
$options = [] , |
|||
$join_conds = [] |
|||
) |
Definition at line 1258 of file DatabaseOracle.php.
DatabaseOracle::sourceStream | ( | $fp, | |
$lineCallback = false , |
|||
$resultCallback = false , |
|||
$fname = __METHOD__ , |
|||
$inputCallback = false |
|||
) |
defines must comply with ^define\s*([^\s=]*)\s*=\s?'\{\$([^\}]*)\}';
resource | $fp | |
bool | string | $lineCallback | |
bool | callable | $resultCallback | |
string | $fname | |
bool | callable | $inputCallback |
Definition at line 1098 of file DatabaseOracle.php.
DatabaseOracle::strencode | ( | $s | ) |
Definition at line 1198 of file DatabaseOracle.php.
References $s.
DatabaseOracle::tableExists | ( | $table, | |
$fname = __METHOD__ |
|||
) |
Query whether a given table exists (in the given schema, or the default mw one if not given)
string | $table | |
string | $fname |
Definition at line 971 of file DatabaseOracle.php.
References $res, and tableName().
DatabaseOracle::tableName | ( | $name, | |
$format = 'quoted' |
|||
) |
Definition at line 736 of file DatabaseOracle.php.
References $name.
DatabaseOracle::tableNameInternal | ( | $name | ) |
Definition at line 754 of file DatabaseOracle.php.
References $name, and tableName().
DatabaseOracle::textFieldSize | ( | $table, | |
$field | |||
) |
Returns the size of a text field, or -1 for "unlimited".
string | $table | |
string | $field |
Definition at line 815 of file DatabaseOracle.php.
DatabaseOracle::timestamp | ( | $ts = 0 | ) |
Definition at line 902 of file DatabaseOracle.php.
References TS_ORACLE, and wfTimestamp().
DatabaseOracle::unionQueries | ( | $sqls, | |
$all | |||
) |
Definition at line 841 of file DatabaseOracle.php.
DatabaseOracle::update | ( | $table, | |
$values, | |||
$conds, | |||
$fname = __METHOD__ , |
|||
$options = [] |
|||
) |
string | $table | |
array | $values | |
array | $conds | |
string | $fname | |
array | $options |
DBUnexpectedError |
Definition at line 1357 of file DatabaseOracle.php.
References $e, $options, $wgContLang, as, false, global, LIST_AND, and tableName().
DatabaseOracle::upsert | ( | $table, | |
array | $rows, | ||
array | $uniqueIndexes, | ||
array | $set, | ||
$fname = __METHOD__ |
|||
) |
Definition at line 710 of file DatabaseOracle.php.
DatabaseOracle::wasDeadlock | ( | ) |
Definition at line 848 of file DatabaseOracle.php.
|
private |
Definition at line 1240 of file DatabaseOracle.php.
References as.
|
private |
Definition at line 1227 of file DatabaseOracle.php.
References $wgContLang, and global.
|
private |
Character set for Oracle database.
Definition at line 151 of file DatabaseOracle.php.
|
private |
Definition at line 145 of file DatabaseOracle.php.
|
protected |
The number of rows affected as an integer.
Definition at line 139 of file DatabaseOracle.php.
|
private |
Definition at line 154 of file DatabaseOracle.php.
|
private |
Definition at line 142 of file DatabaseOracle.php.
|
protected |
Definition at line 136 of file DatabaseOracle.php.
|
private |
Definition at line 148 of file DatabaseOracle.php.