Public Member Functions | |
__construct ($server=false, $user=false, $password=false, $dbName=false, $failFunction=false, $flags=0, $tablePrefix= 'get from global') | |
Constructor. | |
implicitGroupby () | |
todo: check if these should be true like parent class | |
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. | |
open ($server, $user, $password, $dbName) | |
Open an MSSQL database and return a resource handle to it NOTE: only $dbName is used, the other parameters are irrelevant for MSSQL databases. | |
close () | |
Close an MSSQL database. | |
doQuery ($sql) | |
| |
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 ($res, $n) | |
Get a field name in a result object See documentation for mysql_field_name(): http://www.php.net/mysql_field_name. | |
insertId () | |
Get the inserted value of an auto-increment row. | |
dataSeek ($res, $row) | |
Change the position of the cursor in a result object See mysql_data_seek(). | |
lastErrno () | |
Get the last error number. | |
lastError () | |
Get a description of the last error. | |
affectedRows () | |
Get the number of rows affected by the last write query. | |
set ($table, $var, $value, $cond, $fname= 'Database::set') | |
Simple UPDATE wrapper Usually aborts on failure If errors are explicitly ignored, returns success. | |
selectField ($table, $var, $cond='', $fname= 'Database::selectField', $options=array()) | |
Simple SELECT wrapper, returns a single field, input must be encoded Usually aborts on failure If errors are explicitly ignored, returns FALSE on failure. | |
makeSelectOptions ($options) | |
Returns an optional USE INDEX clause to go after the table, and a string to go at the end of the query. | |
select ($table, $vars, $conds='', $fname= 'Database::select', $options=array()) | |
SELECT wrapper. | |
estimateRowCount ($table, $vars='*', $conds='', $fname= 'Database::estimateRowCount', $options=array()) | |
Estimate rows in dataset Returns estimated count, based on EXPLAIN output Takes same arguments as Database::select(). | |
fieldExists ($table, $field, $fname= 'Database::fieldExists') | |
Determines whether a field exists in a table Usually aborts on failure If errors are explicitly ignored, returns NULL on failure. | |
indexInfo ($table, $index, $fname= 'Database::indexInfo') | |
Get information about an index into an object Returns false if the index does not exist. | |
tableExists ($table) | |
Query whether a given table exists. | |
fieldInfo ($table, $field) | |
mysql_fetch_field() wrapper Returns false if the field doesn't exist | |
fieldType ($res, $index) | |
mysql_field_type() wrapper | |
insert ($table, $a, $fname= 'Database::insert', $options=array()) | |
INSERT wrapper, inserts an array into a table. | |
makeListWithoutNulls ($a, $mode=LIST_COMMA) | |
MSSQL doesn't allow implicit casting of NULL's into non-null values for NOT NULL columns for now I've just converted the NULL's in the lists for updates and inserts into empty strings which get implicitly casted to 0 for numeric columns NOTE: the set() method above converts NULL to empty string as well but not via this method. | |
update ($table, $values, $conds, $fname= 'Database::update', $options=array()) | |
UPDATE wrapper, takes a condition array and a SET array. | |
makeUpdateOptions ($options) | |
Make UPDATE options for the Database::update function. | |
selectDB ($db) | |
Change the current database. | |
tableName ($name) | |
MSSQL has a problem with the backtick quoting, so all this does is ensure the prefix is added exactly once. | |
strencode ($s) | |
MSSQL doubles quotes instead of escaping them. | |
useIndexClause ($index) | |
USE INDEX clause. | |
replace ($table, $uniqueIndexes, $rows, $fname= 'Database::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= 'Database::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". | |
lowPriorityOption () | |
insertSelect ($destTable, $srcTable, $varMap, $conds, $fname= 'Database::insertSelect', $insertOptions=array(), $selectOptions=array()) | |
INSERT SELECT wrapper $varMap must be an associative array of the form array( 'dest1' => 'source1', . | |
limitResult ($sql, $limit, $offset=false) | |
Construct a LIMIT query with optional offset This is used for query pages $sql string SQL query we will append the limit to $limit integer the SQL limit $offset integer the SQL offset (default false). | |
conditional ($cond, $trueVal, $falseVal) | |
Returns an SQL expression for a simple conditional. | |
wasDeadlock () | |
Should determine if the last failure was due to a deadlock. | |
immediateBegin ($fname= 'Database::immediateBegin') | |
Begin a transaction, committing any previously open transaction. | |
immediateCommit ($fname= 'Database::immediateCommit') | |
Commit transaction, if one is open. | |
timestamp ($ts=0) | |
Return MW-style timestamp used for MySQL schema. | |
timestampOrNull ($ts=null) | |
Local database timestamp format or null. | |
getSoftwareLink () | |
getServerVersion () | |
limitResultForUpdate ($sql, $num) | |
setTimeout ($timeout) | |
not done | |
ping () | |
Ping the server and try to reconnect if it there is no connection. | |
getLag () | |
How lagged is this slave? | |
setup_database () | |
Called by the installer script
| |
lock ($lockName, $method) | |
No-op lock functions. | |
unlock ($lockName, $method) | |
Release a lock. | |
getSearchEngine () | |
Get search engine class. | |
Static Public Member Functions | |
static | newFromParams ($server, $user, $password, $dbName, $failFunction=false, $flags=0) |
Same as new Database( . | |
Public Attributes | |
$mAffectedRows | |
$mLastResult | |
$mLastError | |
$mLastErrorNo | |
$mDatabaseFile |
Definition at line 13 of file DatabaseMssql.php.
DatabaseMssql::__construct | ( | $ | server = false , |
|
$ | user = false , |
|||
$ | password = false , |
|||
$ | dbName = false , |
|||
$ | failFunction = false , |
|||
$ | flags = 0 , |
|||
$ | tablePrefix = 'get from global' | |||
) |
Constructor.
Reimplemented from Database.
Definition at line 24 of file DatabaseMssql.php.
References $flags, $password, $user, $wgCommandLineMode, $wgDBprefix, $wgOut, and open().
DatabaseMssql::affectedRows | ( | ) |
Get the number of rows affected by the last write query.
Reimplemented from Database.
Definition at line 293 of file DatabaseMssql.php.
DatabaseMssql::close | ( | ) |
Close an MSSQL database.
Reimplemented from Database.
Definition at line 131 of file DatabaseMssql.php.
References immediateCommit(), and Database::trxLevel().
Referenced by open().
DatabaseMssql::conditional | ( | $ | cond, | |
$ | trueVal, | |||
$ | falseVal | |||
) |
Returns an SQL expression for a simple conditional.
$cond | String: SQL expression which will result in a boolean value | |
$trueVal | String: SQL expression to return if true | |
$falseVal | String: SQL expression to return if false |
Reimplemented from Database.
Definition at line 868 of file DatabaseMssql.php.
Referenced by setup_database().
DatabaseMssql::dataSeek | ( | $ | res, | |
$ | row | |||
) |
Change the position of the cursor in a result object See mysql_data_seek().
$res | SQL result object as returned from Database::query(), etc. | |
$row | Database row |
Reimplemented from Database.
Definition at line 269 of file DatabaseMssql.php.
DatabaseMssql::deleteJoin | ( | $ | delTable, | |
$ | joinTable, | |||
$ | delVar, | |||
$ | joinVar, | |||
$ | conds, | |||
$ | fname = 'Database::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
$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 |
Reimplemented from Database.
Definition at line 767 of file DatabaseMssql.php.
References $conds, $fname, $sql, Database::makeList(), Database::query(), and tableName().
DatabaseMssql::doQuery | ( | $ | sql | ) |
Reimplemented from Database.
Definition at line 144 of file DatabaseMssql.php.
DatabaseMssql::estimateRowCount | ( | $ | table, | |
$ | vars = '*' , |
|||
$ | conds = '' , |
|||
$ | fname = 'Database::estimateRowCount' , |
|||
$ | options = array() | |||
) |
Estimate rows in dataset Returns estimated count, based on EXPLAIN output Takes same arguments as Database::select().
Reimplemented from Database.
Definition at line 453 of file DatabaseMssql.php.
References $conds, $fname, $options, $res, $row, $rows, fetchObject(), freeResult(), and select().
DatabaseMssql::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.
$res | SQL result object as returned from Database::query(), etc. |
DBUnexpectedError | Thrown if the database returns an error |
Reimplemented from Database.
Definition at line 178 of file DatabaseMssql.php.
References $res, $row, lastErrno(), and lastError().
Referenced by estimateRowCount(), indexInfo(), and textFieldSize().
DatabaseMssql::fetchRow | ( | $ | res | ) |
Fetch the next row from the given result object, in associative array form.
Fields are retrieved with $row['fieldname'].
$res | SQL result object as returned from Database::query(), etc. |
DBUnexpectedError | Thrown if the database returns an error |
Reimplemented from Database.
Definition at line 197 of file DatabaseMssql.php.
References $res, $row, lastErrno(), and lastError().
Referenced by selectField().
DatabaseMssql::fieldExists | ( | $ | table, | |
$ | field, | |||
$ | fname = 'Database::fieldExists' | |||
) |
Determines whether a field exists in a table Usually aborts on failure If errors are explicitly ignored, returns NULL on failure.
Reimplemented from Database.
Definition at line 469 of file DatabaseMssql.php.
References $res, $row, $sql, freeResult(), Database::query(), and tableName().
DatabaseMssql::fieldInfo | ( | $ | table, | |
$ | field | |||
) |
mysql_fetch_field() wrapper Returns false if the field doesn't exist
$table | ||
$field |
Reimplemented from Database.
Definition at line 531 of file DatabaseMssql.php.
References $i, $n, $res, Database::query(), and tableName().
DatabaseMssql::fieldName | ( | $ | res, | |
$ | n | |||
) |
Get a field name in a result object See documentation for mysql_field_name(): http://www.php.net/mysql_field_name.
$res | SQL result object as returned from Database::query(), etc. | |
$n | Int |
Reimplemented from Database.
Definition at line 241 of file DatabaseMssql.php.
DatabaseMssql::fieldType | ( | $ | res, | |
$ | index | |||
) |
mysql_field_type() wrapper
Reimplemented from Database.
Definition at line 547 of file DatabaseMssql.php.
References $res.
DatabaseMssql::freeResult | ( | $ | res | ) |
Free a result object.
Reimplemented from Database.
Definition at line 160 of file DatabaseMssql.php.
References $res.
Referenced by estimateRowCount(), fieldExists(), indexInfo(), selectField(), tableExists(), and textFieldSize().
DatabaseMssql::getLag | ( | ) |
How lagged is this slave?
Reimplemented from Database.
Definition at line 946 of file DatabaseMssql.php.
DatabaseMssql::getSearchEngine | ( | ) |
Get search engine class.
All subclasses of this need to implement this if they wish to use searching.
Reimplemented from Database.
Definition at line 1014 of file DatabaseMssql.php.
DatabaseMssql::getServerVersion | ( | ) |
Reimplemented from Database.
Definition at line 924 of file DatabaseMssql.php.
References $row.
DatabaseMssql::getSoftwareLink | ( | ) |
Reimplemented from Database.
Definition at line 917 of file DatabaseMssql.php.
DatabaseMssql::immediateBegin | ( | $ | fname = 'Database::immediateBegin' |
) |
Begin a transaction, committing any previously open transaction.
Reimplemented from Database.
Definition at line 884 of file DatabaseMssql.php.
References Database::begin().
DatabaseMssql::immediateCommit | ( | $ | fname = 'Database::immediateCommit' |
) |
Commit transaction, if one is open.
Reimplemented from Database.
Definition at line 892 of file DatabaseMssql.php.
References Database::commit().
Referenced by close().
DatabaseMssql::implicitGroupby | ( | ) |
todo: check if these should be true like parent class
Reimplemented from Database.
Definition at line 51 of file DatabaseMssql.php.
DatabaseMssql::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 Database.
Definition at line 52 of file DatabaseMssql.php.
DatabaseMssql::indexInfo | ( | $ | table, | |
$ | index, | |||
$ | fname = 'Database::indexInfo' | |||
) |
Get information about an index into an object Returns false if the index does not exist.
Reimplemented from Database.
Definition at line 490 of file DatabaseMssql.php.
References $fname, $res, $result, $row, $sql, fetchObject(), freeResult(), Database::query(), and tableName().
DatabaseMssql::insert | ( | $ | table, | |
$ | a, | |||
$ | fname = 'Database::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
Same as parent class implementation except that it removes primary key from column lists because MSSQL doesn't support writing nulls to IDENTITY (AUTO_INCREMENT) columns
Reimplemented from Database.
Definition at line 566 of file DatabaseMssql.php.
References $fname, $i, $ignore, $keys, $options, $row, $sql, makeListWithoutNulls(), Database::query(), and tableName().
DatabaseMssql::insertId | ( | ) |
Get the inserted value of an auto-increment row.
The value inserted should be fetched from nextSequenceValue()
Example: $id = $dbw->nextSequenceValue('page_page_id_seq'); $dbw->insert('page',array('page_id' => $id)); $id = $dbw->insertId();
Reimplemented from Database.
Definition at line 258 of file DatabaseMssql.php.
References $row.
DatabaseMssql::insertSelect | ( | $ | destTable, | |
$ | srcTable, | |||
$ | varMap, | |||
$ | conds, | |||
$ | fname = 'Database::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 Database.
Definition at line 815 of file DatabaseMssql.php.
References $conds, $fname, $sql, Database::makeList(), makeSelectOptions(), Database::query(), and tableName().
DatabaseMssql::lastErrno | ( | ) |
Get the last error number.
Reimplemented from Database.
Definition at line 279 of file DatabaseMssql.php.
Referenced by fetchObject(), fetchRow(), numRows(), and wasDeadlock().
DatabaseMssql::lastError | ( | ) |
Get a description of the last error.
Reimplemented from Database.
Definition at line 286 of file DatabaseMssql.php.
Referenced by fetchObject(), fetchRow(), and numRows().
DatabaseMssql::limitResult | ( | $ | sql, | |
$ | limit, | |||
$ | offset = false | |||
) |
Construct a LIMIT query with optional offset This is used for query pages $sql string SQL query we will append the limit to $limit integer the SQL limit $offset integer the SQL offset (default false).
Reimplemented from Database.
Definition at line 848 of file DatabaseMssql.php.
Referenced by select().
DatabaseMssql::limitResultForUpdate | ( | $ | sql, | |
$ | num | |||
) |
DatabaseMssql::lock | ( | $ | lockName, | |
$ | method | |||
) |
No-op lock functions.
Reimplemented from Database.
Definition at line 1007 of file DatabaseMssql.php.
DatabaseMssql::lowPriorityOption | ( | ) |
Reimplemented from Database.
Definition at line 804 of file DatabaseMssql.php.
Referenced by makeUpdateOptions().
DatabaseMssql::makeListWithoutNulls | ( | $ | a, | |
$ | mode = LIST_COMMA | |||
) |
MSSQL doesn't allow implicit casting of NULL's into non-null values for NOT NULL columns for now I've just converted the NULL's in the lists for updates and inserts into empty strings which get implicitly casted to 0 for numeric columns NOTE: the set() method above converts NULL to empty string as well but not via this method.
Definition at line 641 of file DatabaseMssql.php.
References $mode, and Database::makeList().
DatabaseMssql::makeSelectOptions | ( | $ | options | ) |
Returns an optional USE INDEX clause to go after the table, and a string to go at the end of the query.
$options | Array: an associative array of options to be turned into an SQL query, valid keys are listed in the function. |
Reimplemented from Database.
Definition at line 348 of file DatabaseMssql.php.
References $key, $options, and useIndexClause().
Referenced by insertSelect(), and select().
DatabaseMssql::makeUpdateOptions | ( | $ | options | ) |
Make UPDATE options for the Database::update function.
$options | Array: The options passed to Database::update |
Reimplemented from Database.
Definition at line 674 of file DatabaseMssql.php.
References $options, and lowPriorityOption().
Referenced by update().
static DatabaseMssql::newFromParams | ( | $ | server, | |
$ | user, | |||
$ | password, | |||
$ | dbName, | |||
$ | failFunction = false , |
|||
$ | flags = 0 | |||
) | [static] |
Same as new Database( .
.. ), kept for backward compatibility
$server | String: database server host | |
$user | String: database user name | |
$password | String: database user password | |
$dbName | String: database name | |
failFunction | ||
$flags |
Reimplemented from Database.
Definition at line 54 of file DatabaseMssql.php.
DatabaseMssql::numFields | ( | $ | res | ) |
Get the number of fields in a result object See documentation for mysql_num_fields().
$res | SQL result object as returned from Database::query(), etc. |
Reimplemented from Database.
Definition at line 227 of file DatabaseMssql.php.
References $res.
DatabaseMssql::numRows | ( | $ | res | ) |
Get the number of rows in a result object.
Reimplemented from Database.
Definition at line 211 of file DatabaseMssql.php.
References $n, $res, lastErrno(), and lastError().
Referenced by selectField().
DatabaseMssql::open | ( | $ | server, | |
$ | user, | |||
$ | password, | |||
$ | dbName | |||
) |
Open an MSSQL database and return a resource handle to it NOTE: only $dbName is used, the other parameters are irrelevant for MSSQL databases.
Reimplemented from Database.
Definition at line 61 of file DatabaseMssql.php.
References $error, $i, $password, $success, $user, close(), Database::reportConnectionError(), wfDebug(), wfHostname(), wfLogDBError(), wfProfileIn(), and wfProfileOut().
Referenced by __construct().
DatabaseMssql::ping | ( | ) |
Ping the server and try to reconnect if it there is no connection.
Reimplemented from Database.
Definition at line 938 of file DatabaseMssql.php.
References wfDebug().
DatabaseMssql::replace | ( | $ | table, | |
$ | uniqueIndexes, | |||
$ | rows, | |||
$ | fname = 'Database::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
Reimplemented from Database.
Definition at line 730 of file DatabaseMssql.php.
References $fname, $row, $rows, $sql, Database::makeList(), Database::query(), and tableName().
DatabaseMssql::select | ( | $ | table, | |
$ | vars, | |||
$ | conds = '' , |
|||
$ | fname = 'Database::select' , |
|||
$ | options = array() | |||
) |
SELECT wrapper.
$table | Mixed: Array or string, table name(s) (prefix auto-added) | |
$vars | Mixed: Array or string, field name(s) to be retrieved | |
$conds | Mixed: Array or string, condition(s) for WHERE | |
$fname | String: Calling function name (use __METHOD__) for logs/profiling | |
$options | Array: Associative array of options (e.g. array('GROUP BY' => 'page_title')), see Database::makeSelectOptions code for list of supported stuff |
Definition at line 403 of file DatabaseMssql.php.
References $conds, $fname, $options, $sql, limitResult(), Database::makeList(), makeSelectOptions(), Database::query(), and tableName().
Referenced by estimateRowCount(), and selectField().
DatabaseMssql::selectDB | ( | $ | db | ) |
Change the current database.
Reimplemented from Database.
Definition at line 689 of file DatabaseMssql.php.
References $db.
DatabaseMssql::selectField | ( | $ | table, | |
$ | var, | |||
$ | cond = '' , |
|||
$ | fname = 'Database::selectField' , |
|||
$ | options = array() | |||
) |
Simple SELECT wrapper, returns a single field, input must be encoded Usually aborts on failure If errors are explicitly ignored, returns FALSE on failure.
Reimplemented from Database.
Definition at line 319 of file DatabaseMssql.php.
References $fname, $options, $res, $row, fetchRow(), freeResult(), numRows(), and select().
DatabaseMssql::set | ( | $ | table, | |
$ | var, | |||
$ | value, | |||
$ | cond, | |||
$ | fname = 'Database::set' | |||
) |
Simple UPDATE wrapper Usually aborts on failure If errors are explicitly ignored, returns success.
This function exists for historical reasons, Database::update() has a more standard calling convention and feature set
Reimplemented from Database.
Definition at line 305 of file DatabaseMssql.php.
References $fname, $sql, makeListWithoutNulls(), Database::query(), strencode(), and tableName().
DatabaseMssql::setTimeout | ( | $ | timeout | ) |
DatabaseMssql::setup_database | ( | ) |
Called by the installer script
Definition at line 954 of file DatabaseMssql.php.
References $IP, $sql, $wgDBTableOptions, conditional(), is(), Database::query(), Database::reportQueryError(), Database::sourceFile(), and table.
DatabaseMssql::strencode | ( | $ | s | ) |
MSSQL doubles quotes instead of escaping them.
$s | String to be slashed. |
Reimplemented from Database.
Definition at line 706 of file DatabaseMssql.php.
References $s.
Referenced by set().
DatabaseMssql::tableExists | ( | $ | table | ) |
Query whether a given table exists.
Reimplemented from Database.
Definition at line 516 of file DatabaseMssql.php.
References $res, freeResult(), Database::query(), and tableName().
DatabaseMssql::tableName | ( | $ | name | ) |
MSSQL has a problem with the backtick quoting, so all this does is ensure the prefix is added exactly once.
Reimplemented from Database.
Definition at line 697 of file DatabaseMssql.php.
References $name.
Referenced by deleteJoin(), fieldExists(), fieldInfo(), indexInfo(), insert(), insertSelect(), replace(), select(), set(), tableExists(), textFieldSize(), and update().
DatabaseMssql::textFieldSize | ( | $ | table, | |
$ | field | |||
) |
Returns the size of a text field, or -1 for "unlimited".
Reimplemented from Database.
Definition at line 785 of file DatabaseMssql.php.
References $res, $row, $size, $sql, fetchObject(), freeResult(), Database::query(), and tableName().
DatabaseMssql::timestamp | ( | $ | ts = 0 |
) |
Return MW-style timestamp used for MySQL schema.
Reimplemented from Database.
Definition at line 899 of file DatabaseMssql.php.
References $ts, and wfTimestamp().
Referenced by timestampOrNull().
DatabaseMssql::timestampOrNull | ( | $ | ts = null |
) |
Local database timestamp format or null.
Reimplemented from Database.
Definition at line 906 of file DatabaseMssql.php.
References $ts, and timestamp().
DatabaseMssql::unlock | ( | $ | lockName, | |
$ | method | |||
) |
Release a lock.
$lockName | String: Name of lock to release | |
$method | String: Name of method calling us |
Reimplemented from Database.
Definition at line 1010 of file DatabaseMssql.php.
DatabaseMssql::update | ( | $ | table, | |
$ | values, | |||
$ | conds, | |||
$ | fname = 'Database::update' , |
|||
$ | options = array() | |||
) |
UPDATE wrapper, takes a condition array and a SET array.
$table | String: The table to UPDATE | |
$values | Array: An array of values to SET | |
$conds | Array: An array of conditions (WHERE). Use '*' to update all rows. | |
$fname | String: The Class::Function calling this function (for the log) | |
$options | Array: An array of UPDATE options, can be one or more of IGNORE, LOW_PRIORITY |
Reimplemented from Database.
Definition at line 657 of file DatabaseMssql.php.
References $conds, $fname, $options, $sql, Database::makeList(), makeListWithoutNulls(), makeUpdateOptions(), Database::query(), and tableName().
DatabaseMssql::useIndexClause | ( | $ | index | ) |
USE INDEX clause.
Reimplemented from Database.
Definition at line 713 of file DatabaseMssql.php.
Referenced by makeSelectOptions().
DatabaseMssql::wasDeadlock | ( | ) |
Should determine if the last failure was due to a deadlock.
Reimplemented from Database.
Definition at line 876 of file DatabaseMssql.php.
References lastErrno().
DatabaseMssql::$mAffectedRows |
Definition at line 15 of file DatabaseMssql.php.
DatabaseMssql::$mDatabaseFile |
Definition at line 19 of file DatabaseMssql.php.
DatabaseMssql::$mLastError |
Definition at line 17 of file DatabaseMssql.php.
DatabaseMssql::$mLastErrorNo |
Definition at line 18 of file DatabaseMssql.php.
DatabaseMssql::$mLastResult |
Definition at line 16 of file DatabaseMssql.php.