MediaWiki REL1_28
DatabaseMssql Class Reference
Inheritance diagram for DatabaseMssql:
Collaboration diagram for DatabaseMssql:

Public Member Functions

 addIdentifierQuotes ( $s)
 
 addQuotes ( $s)
 
 affectedRows ()
 
 buildConcat ( $stringList)
 
 buildGroupConcatField ( $delim, $table, $field, $conds='', $join_conds=[])
 Build a GROUP_CONCAT or equivalent statement for a query.
 
 buildLike ()
 MS SQL requires specifying the escape character used in a LIKE query or using Square brackets to surround characters that are to be escaped http://msdn.microsoft.com/en-us/library/ms179859.aspx Here we take the Specify-Escape-Character approach since it's less invasive, renders a query that is closer to other DB's and better at handling square bracket escaping.
 
 dataSeek ( $res, $row)
 
 delete ( $table, $conds, $fname=__METHOD__)
 
 deleteJoin ( $delTable, $joinTable, $delVar, $joinVar, $conds, $fname=__METHOD__)
 
 dropTable ( $tableName, $fName=__METHOD__)
 Delete a table.
 
 estimateRowCount ( $table, $vars=' *', $conds='', $fname=__METHOD__, $options=[])
 Estimate rows in dataset Returns estimated count, based on SHOWPLAN_ALL output This is not necessarily an accurate estimate, so use sparingly Returns -1 if count cannot be found Takes same arguments as Database::select()
 
 fetchObject ( $res)
 
 fetchRow ( $res)
 
 fieldExists ( $table, $field, $fname=__METHOD__)
 Query whether a given column exists in the mediawiki schema.
 
 fieldInfo ( $table, $field)
 
 fieldName ( $res, $n)
 
 freeResult ( $res)
 
 getServerVersion ()
 
 getSoftwareLink ()
 
 getType ()
 Get the type of the DBMS, as it appears in $wgDBtype.
 
 ignoreErrors (array $value=null)
 Called in the installer and updater.
 
 implicitGroupby ()
 
 implicitOrderby ()
 
 indexInfo ( $table, $index, $fname=__METHOD__)
 Returns information about an index If errors are explicitly ignored, returns NULL on failure.
 
 insert ( $table, $arrToInsert, $fname=__METHOD__, $options=[])
 INSERT wrapper, inserts an array into a table.
 
 insertId ()
 This must be called after nextSequenceVal.
 
 isQuotedIdentifier ( $name)
 
 lastErrno ()
 
 lastError ()
 
 limitResult ( $sql, $limit, $offset=false)
 Construct a LIMIT query with optional offset This is used for query pages.
 
 LimitToTopN ( $sql)
 If there is a limit clause, parse it, strip it, and pass the remaining SQL through limitResult() with the appropriate parameters.
 
 makeList ( $a, $mode=LIST_COMMA, $binaryColumns=[])
 Makes an encoded list of strings from an array.
 
 makeSelectOptions ( $options)
 
 nativeInsertSelect ( $destTable, $srcTable, $varMap, $conds, $fname=__METHOD__, $insertOptions=[], $selectOptions=[])
 INSERT SELECT wrapper $varMap must be an associative array of the form [ 'dest1' => 'source1', ... ] Source items may be literals rather than field names, but strings should be quoted with Database::addQuotes().
 
 numFields ( $res)
 
 numRows ( $res)
 
 open ( $server, $user, $password, $dbName)
 Usually aborts on failure.
 
 prepareStatements ( $value=null)
 Called in the installer and updater.
 
 realTableName ( $name, $format='quoted')
 call this instead of tableName() in the updater when renaming tables
 
 scrollableCursor ( $value=null)
 Called in the installer and updater.
 
 select ( $table, $vars, $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
 SELECT wrapper.
 
 selectDB ( $db)
 
 selectSQLText ( $table, $vars, $conds='', $fname=__METHOD__, $options=[], $join_conds=[])
 SELECT wrapper.
 
 strencode ( $s)
 
 tableExists ( $table, $fname=__METHOD__)
 
 tableName ( $name, $format='quoted')
 
 textFieldSize ( $table, $field)
 
 unionSupportsOrderAndLimit ()
 
 update ( $table, $values, $conds, $fname=__METHOD__, $options=[])
 UPDATE wrapper.
 

Protected Member Functions

 closeConnection ()
 Closes a database connection, if it is open Returns success, true if already closed.
 
 doBegin ( $fname=__METHOD__)
 Begin a transaction, committing any previously open transaction.
 
 doCommit ( $fname=__METHOD__)
 End a transaction.
 
 doQuery ( $sql)
 
 doRollback ( $fname=__METHOD__)
 Rollback a transaction.
 
 escapeLikeInternal ( $s)
 MS SQL supports more pattern operators than other databases (ex: [,],^)
 
 resultObject ( $result)
 

Protected Attributes

 $mAffectedRows = null
 
 $mBinaryColumnCache = null
 
 $mBitColumnCache = null
 
 $mIgnoreDupKeyErrors = false
 
 $mIgnoreErrors = []
 
 $mInsertId = null
 
 $mLastResult = null
 
 $mPort
 
 $mPrepareStatements = true
 
 $mScrollableCursor = true
 
 $mSubqueryId = 0
 

Private Member Functions

 escapeIdentifier ( $identifier)
 Escapes a identifier for use inm SQL.
 
 formatError ( $err)
 
 getBinaryColumns ( $table)
 Returns an associative array for fields that are of type varbinary, binary, or image $table can be either a raw table name or passed through tableName() first.
 
 getBitColumns ( $table)
 
 populateColumnCaches ()
 

Detailed Description

Definition at line 31 of file DatabaseMssql.php.

Member Function Documentation

◆ addIdentifierQuotes()

DatabaseMssql::addIdentifierQuotes (   $s)
Parameters
string$s
Returns
string

Definition at line 1111 of file DatabaseMssql.php.

References $s.

◆ addQuotes()

DatabaseMssql::addQuotes (   $s)
Parameters
string | int | null | bool | Blob$s
Returns
string|int

Definition at line 1091 of file DatabaseMssql.php.

References $blob, and $s.

Referenced by insert().

◆ affectedRows()

DatabaseMssql::affectedRows ( )
Returns
int

Definition at line 349 of file DatabaseMssql.php.

References $mAffectedRows.

◆ buildConcat()

DatabaseMssql::buildConcat (   $stringList)
Parameters
array$stringList
Returns
string

Definition at line 1212 of file DatabaseMssql.php.

◆ buildGroupConcatField()

DatabaseMssql::buildGroupConcatField (   $delim,
  $table,
  $field,
  $conds = '',
  $join_conds = [] 
)

Build a GROUP_CONCAT or equivalent statement for a query.

MS SQL doesn't have GROUP_CONCAT so we emulate it with other stuff (and boy is it nasty)

This is useful for combining a field for several rows into a single string. NULL values will not appear in the output, duplicated values will appear, and the resulting delimiter-separated values have no defined sort order. Code using the results may need to use the PHP unique() or sort() methods.

Parameters
string$delimGlue to bind the results together
string | array$tableTable name
string$fieldField name
string | array$condsConditions
string | array$join_condsJoin conditions
Returns
string SQL text
Since
1.23

Definition at line 1233 of file DatabaseMssql.php.

References $mSubqueryId, and selectSQLText().

◆ buildLike()

DatabaseMssql::buildLike ( )

MS SQL requires specifying the escape character used in a LIKE query or using Square brackets to surround characters that are to be escaped http://msdn.microsoft.com/en-us/library/ms179859.aspx Here we take the Specify-Escape-Character approach since it's less invasive, renders a query that is closer to other DB's and better at handling square bracket escaping.

Returns
string Fully built LIKE statement

Definition at line 1144 of file DatabaseMssql.php.

References $params.

◆ closeConnection()

DatabaseMssql::closeConnection ( )
protected

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

Returns
bool

Definition at line 121 of file DatabaseMssql.php.

◆ dataSeek()

DatabaseMssql::dataSeek (   $res,
  $row 
)
Parameters
MssqlResultWrapper$res
int$row
Returns
bool

Definition at line 305 of file DatabaseMssql.php.

References $res.

◆ delete()

DatabaseMssql::delete (   $table,
  $conds,
  $fname = __METHOD__ 
)

Definition at line 468 of file DatabaseMssql.php.

References $e, and $fname.

◆ deleteJoin()

DatabaseMssql::deleteJoin (   $delTable,
  $joinTable,
  $delVar,
  $joinVar,
  $conds,
  $fname = __METHOD__ 
)

Definition at line 455 of file DatabaseMssql.php.

References $e, and $fname.

◆ doBegin()

DatabaseMssql::doBegin (   $fname = __METHOD__)
protected

Begin a transaction, committing any previously open transaction.

Parameters
string$fname

Definition at line 1027 of file DatabaseMssql.php.

◆ doCommit()

DatabaseMssql::doCommit (   $fname = __METHOD__)
protected

End a transaction.

Parameters
string$fname

Definition at line 1036 of file DatabaseMssql.php.

◆ doQuery()

DatabaseMssql::doQuery (   $sql)
protected
Parameters
string$sql
Returns
bool|MssqlResult
Exceptions
DBUnexpectedError

Definition at line 147 of file DatabaseMssql.php.

References $matches, $mIgnoreErrors, $success, as, DBO_DEBUG, LimitToTopN(), and wfDebug().

Referenced by insert().

◆ doRollback()

DatabaseMssql::doRollback (   $fname = __METHOD__)
protected

Rollback a transaction.

No-op on non-transactional databases.

Parameters
string$fname

Definition at line 1046 of file DatabaseMssql.php.

◆ dropTable()

DatabaseMssql::dropTable (   $tableName,
  $fName = __METHOD__ 
)

Delete a table.

Parameters
string$tableName
string$fName
Returns
bool|ResultWrapper
Since
1.18

Definition at line 1344 of file DatabaseMssql.php.

References query, tableExists(), and tableName().

◆ escapeIdentifier()

DatabaseMssql::escapeIdentifier (   $identifier)
private

Escapes a identifier for use inm SQL.

Throws an exception if it is invalid. Reference: http://msdn.microsoft.com/en-us/library/aa224033%28v=SQL.80%29.aspx

Parameters
string$identifier
Exceptions
InvalidArgumentException
Returns
string

Definition at line 1059 of file DatabaseMssql.php.

◆ escapeLikeInternal()

DatabaseMssql::escapeLikeInternal (   $s)
protected

MS SQL supports more pattern operators than other databases (ex: [,],^)

Parameters
string$s
Returns
string

Definition at line 1130 of file DatabaseMssql.php.

References $s.

◆ estimateRowCount()

DatabaseMssql::estimateRowCount (   $table,
  $vars = '*',
  $conds = '',
  $fname = __METHOD__,
  $options = [] 
)

Estimate rows in dataset Returns estimated count, based on SHOWPLAN_ALL output This is not necessarily an accurate estimate, so use sparingly Returns -1 if count cannot be found Takes same arguments as Database::select()

Parameters
string$table
string$vars
string$conds
string$fname
array$options
Returns
int

Definition at line 492 of file DatabaseMssql.php.

References $fname, $options, $res, $vars, fetchRow(), and select().

◆ fetchObject()

DatabaseMssql::fetchObject (   $res)
Parameters
MssqlResultWrapper$res
Returns
stdClass

Definition at line 234 of file DatabaseMssql.php.

References $res.

◆ fetchRow()

DatabaseMssql::fetchRow (   $res)
Parameters
MssqlResultWrapper$res
Returns
array

Definition at line 243 of file DatabaseMssql.php.

References $res.

Referenced by estimateRowCount(), and textFieldSize().

◆ fieldExists()

DatabaseMssql::fieldExists (   $table,
  $field,
  $fname = __METHOD__ 
)

Query whether a given column exists in the mediawiki schema.

Parameters
string$table
string$field
string$fname
Returns
bool

Definition at line 984 of file DatabaseMssql.php.

References $res, list, query, tableName(), and wfDebug().

◆ fieldInfo()

DatabaseMssql::fieldInfo (   $table,
  $field 
)

Definition at line 1003 of file DatabaseMssql.php.

References $res, list, query, tableName(), and wfDebug().

◆ fieldName()

DatabaseMssql::fieldName (   $res,
  $n 
)
Parameters
mixed$res
int$n
Returns
int

Definition at line 284 of file DatabaseMssql.php.

References $res.

◆ formatError()

DatabaseMssql::formatError (   $err)
private
Parameters
array$err
Returns
string

Definition at line 330 of file DatabaseMssql.php.

Referenced by lastError().

◆ freeResult()

DatabaseMssql::freeResult (   $res)

Definition at line 222 of file DatabaseMssql.php.

References $res.

◆ getBinaryColumns()

DatabaseMssql::getBinaryColumns (   $table)
private

Returns an associative array for fields that are of type varbinary, binary, or image $table can be either a raw table name or passed through tableName() first.

Parameters
string$table
Returns
array

Definition at line 1254 of file DatabaseMssql.php.

References populateColumnCaches().

Referenced by insert(), and update().

◆ getBitColumns()

DatabaseMssql::getBitColumns (   $table)
private
Parameters
string$table
Returns
array

Definition at line 1271 of file DatabaseMssql.php.

References populateColumnCaches().

Referenced by selectSQLText().

◆ getServerVersion()

DatabaseMssql::getServerVersion ( )
Returns
string Version information from the database

Definition at line 937 of file DatabaseMssql.php.

◆ getSoftwareLink()

DatabaseMssql::getSoftwareLink ( )
Returns
string Wikitext of a link to the server software's web site

Definition at line 930 of file DatabaseMssql.php.

◆ getType()

DatabaseMssql::getType ( )

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

Returns
string

Definition at line 1204 of file DatabaseMssql.php.

◆ ignoreErrors()

DatabaseMssql::ignoreErrors ( array  $value = null)

Called in the installer and updater.

Probably doesn't need to be called anywhere else in the codebase.

Parameters
array | null$value
Returns
array|null

Definition at line 1381 of file DatabaseMssql.php.

References $value, and wfSetVar().

◆ implicitGroupby()

DatabaseMssql::implicitGroupby ( )

Definition at line 45 of file DatabaseMssql.php.

◆ implicitOrderby()

DatabaseMssql::implicitOrderby ( )

Definition at line 49 of file DatabaseMssql.php.

◆ indexInfo()

DatabaseMssql::indexInfo (   $table,
  $index,
  $fname = __METHOD__ 
)

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

Parameters
string$table
string$index
string$fname
Returns
array|bool|null

Definition at line 520 of file DatabaseMssql.php.

References $fname, $res, as, false, query, and tableName().

◆ insert()

DatabaseMssql::insert (   $table,
  $arrToInsert,
  $fname = __METHOD__,
  $options = [] 
)

INSERT wrapper, inserts an array into a table.

$arrToInsert 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

Parameters
string$table
array$arrToInsert
string$fname
array$options
Returns
bool
Exceptions
Exception

Definition at line 568 of file DatabaseMssql.php.

References $e, $keys, $options, $res, $ret, $value, addQuotes(), as, doQuery(), getBinaryColumns(), query, serialize(), and tableName().

◆ insertId()

DatabaseMssql::insertId ( )

This must be called after nextSequenceVal.

Returns
int|null

Definition at line 296 of file DatabaseMssql.php.

References $mInsertId.

◆ isQuotedIdentifier()

DatabaseMssql::isQuotedIdentifier (   $name)
Parameters
string$name
Returns
bool

Definition at line 1120 of file DatabaseMssql.php.

References $name.

◆ lastErrno()

DatabaseMssql::lastErrno ( )
Returns
string

Definition at line 337 of file DatabaseMssql.php.

◆ lastError()

DatabaseMssql::lastError ( )
Returns
string

Definition at line 312 of file DatabaseMssql.php.

References as, and formatError().

Referenced by open().

◆ limitResult()

DatabaseMssql::limitResult (   $sql,
  $limit,
  $offset = false 
)

Construct a LIMIT query with optional offset This is used for query pages.

Parameters
string$sqlSQL query we will append the limit too
int$limitThe SQL limit
bool | int$offsetThe SQL offset (default false)
Returns
array|string
Exceptions
DBUnexpectedError

Definition at line 856 of file DatabaseMssql.php.

References $last, $limit, and $mSubqueryId.

Referenced by LimitToTopN().

◆ LimitToTopN()

DatabaseMssql::LimitToTopN (   $sql)

If there is a limit clause, parse it, strip it, and pass the remaining SQL through limitResult() with the appropriate parameters.

Not the prettiest solution, but better than building a whole new parser. This exists becase there are still too many extensions that don't use dynamic sql generation.

Parameters
string$sql
Returns
array|mixed|string

Definition at line 911 of file DatabaseMssql.php.

References $matches, and limitResult().

Referenced by doQuery().

◆ makeList()

DatabaseMssql::makeList (   $a,
  $mode = LIST_COMMA,
  $binaryColumns = [] 
)

Makes an encoded list of strings from an array.

Parameters
array$aContaining the data
int$modeConstant
  • LIST_COMMA: comma separated, no field names
  • LIST_AND: ANDed WHERE clause (without the WHERE). See the documentation for $conds in Database::select().
  • LIST_OR: ORed WHERE clause (without the WHERE)
  • LIST_SET: comma separated with field names, like a SET clause
  • LIST_NAMES: comma separated field names
array$binaryColumnsContains a list of column names that are binary types This is a custom parameter only present for MS SQL.
Exceptions
DBUnexpectedError
Returns
string

Definition at line 799 of file DatabaseMssql.php.

References as, and LIST_NAMES.

Referenced by update().

◆ makeSelectOptions()

DatabaseMssql::makeSelectOptions (   $options)
Parameters
array$optionsAn associative array of options to be turned into an SQL query, valid keys are listed in the function.
Returns
array

Definition at line 1172 of file DatabaseMssql.php.

References $options, and as.

◆ nativeInsertSelect()

DatabaseMssql::nativeInsertSelect (   $destTable,
  $srcTable,
  $varMap,
  $conds,
  $fname = __METHOD__,
  $insertOptions = [],
  $selectOptions = [] 
)

INSERT SELECT wrapper $varMap must be an associative array of the form [ 'dest1' => 'source1', ... ] Source items may be literals rather than field names, but strings should be quoted with Database::addQuotes().

Parameters
string$destTable
array | string$srcTableMay be an array of tables.
array$varMap
array$condsMay be "*" to copy the whole table.
string$fname
array$insertOptions
array$selectOptions
Returns
null|ResultWrapper
Exceptions
Exception

Definition at line 713 of file DatabaseMssql.php.

References $e, $fname, and $ret.

◆ numFields()

DatabaseMssql::numFields (   $res)
Parameters
mixed$res
Returns
int

Definition at line 271 of file DatabaseMssql.php.

References $res.

◆ numRows()

DatabaseMssql::numRows (   $res)
Parameters
mixed$res
Returns
int

Definition at line 251 of file DatabaseMssql.php.

References $res, and $ret.

◆ open()

DatabaseMssql::open (   $server,
  $user,
  $password,
  $dbName 
)

Usually aborts on failure.

Parameters
string$server
string$user
string$password
string$dbName
Exceptions
DBConnectionError
Returns
bool|resource|null

Definition at line 66 of file DatabaseMssql.php.

References $user, $wgDBport, $wgDBWindowsAuthentication, global, and lastError().

◆ populateColumnCaches()

DatabaseMssql::populateColumnCaches ( )
private

Definition at line 1284 of file DatabaseMssql.php.

References $res, as, and select().

Referenced by getBinaryColumns(), and getBitColumns().

◆ prepareStatements()

DatabaseMssql::prepareStatements (   $value = null)

Called in the installer and updater.

Probably doesn't need to be called anywhere else in the codebase.

Parameters
bool | null$value
Returns
bool|null

Definition at line 1361 of file DatabaseMssql.php.

References $value, and wfSetVar().

◆ realTableName()

DatabaseMssql::realTableName (   $name,
  $format = 'quoted' 
)

call this instead of tableName() in the updater when renaming tables

Parameters
string$name
string$formatOne of quoted, raw, or split
Returns
string

Definition at line 1324 of file DatabaseMssql.php.

References $name.

Referenced by tableName().

◆ resultObject()

DatabaseMssql::resultObject (   $result)
protected
Parameters
bool | MssqlResultWrapper | resource$result
Returns
bool|MssqlResultWrapper

Definition at line 129 of file DatabaseMssql.php.

◆ scrollableCursor()

DatabaseMssql::scrollableCursor (   $value = null)

Called in the installer and updater.

Probably doesn't need to be called anywhere else in the codebase.

Parameters
bool | null$value
Returns
bool|null

Definition at line 1371 of file DatabaseMssql.php.

References $value, and wfSetVar().

◆ select()

DatabaseMssql::select (   $table,
  $vars,
  $conds = '',
  $fname = __METHOD__,
  $options = [],
  $join_conds = [] 
)

SELECT wrapper.

Parameters
mixed$tableArray or string, table name(s) (prefix auto-added)
mixed$varsArray or string, field name(s) to be retrieved
mixed$condsArray or string, condition(s) for WHERE
string$fnameCalling function name (use METHOD) for logs/profiling
array$optionsAssociative array of options (e.g. [ 'GROUP BY' => 'page_title' ]), see Database::makeSelectOptions code for list of supported stuff
array$join_condsAssociative array of table join conditions (optional) (e.g. [ 'page' => [ 'LEFT JOIN','page_latest=rev_id' ] ]
Returns
mixed Database result resource (feed to Database::fetchObject or whatever), or false on failure
Exceptions
DBQueryError
DBUnexpectedError
Exception

Definition at line 371 of file DatabaseMssql.php.

References $fname, $options, $ret, $vars, query, select(), and selectSQLText().

◆ selectDB()

DatabaseMssql::selectDB (   $db)
Parameters
string$db
Returns
bool

Definition at line 1157 of file DatabaseMssql.php.

References $e, and query.

◆ selectSQLText()

DatabaseMssql::selectSQLText (   $table,
  $vars,
  $conds = '',
  $fname = __METHOD__,
  $options = [],
  $join_conds = [] 
)

SELECT wrapper.

Parameters
mixed$tableArray or string, table name(s) (prefix auto-added)
mixed$varsArray or string, field name(s) to be retrieved
mixed$condsArray or string, condition(s) for WHERE
string$fnameCalling function name (use METHOD) for logs/profiling
array$optionsAssociative array of options (e.g. [ 'GROUP BY' => 'page_title' ]), see Database::makeSelectOptions code for list of supported stuff
array$join_condsAssociative array of table join conditions (optional) (e.g. [ 'page' => [ 'LEFT JOIN','page_latest=rev_id' ] ]
Returns
string The SQL text

Definition at line 423 of file DatabaseMssql.php.

References $fname, $options, $t, $vars, as, getBitColumns(), and tableName().

Referenced by buildGroupConcatField(), and select().

◆ strencode()

DatabaseMssql::strencode (   $s)
Parameters
string$s
Returns
string

Definition at line 1081 of file DatabaseMssql.php.

References $s.

◆ tableExists()

DatabaseMssql::tableExists (   $table,
  $fname = __METHOD__ 
)
Parameters
string$table
string$fname
Returns
bool

Definition at line 952 of file DatabaseMssql.php.

References $res, $wgDBmwschema, global, list, query, tableName(), and wfDebug().

Referenced by dropTable().

◆ tableName()

DatabaseMssql::tableName (   $name,
  $format = 'quoted' 
)
Parameters
string$name
string$format
Returns
string

Definition at line 1308 of file DatabaseMssql.php.

References $name, and realTableName().

◆ textFieldSize()

DatabaseMssql::textFieldSize (   $table,
  $field 
)
Parameters
string$table
string$field
Returns
int Returns the size of a text field, or -1 for "unlimited"

Definition at line 832 of file DatabaseMssql.php.

References $res, fetchRow(), query, and tableName().

◆ unionSupportsOrderAndLimit()

DatabaseMssql::unionSupportsOrderAndLimit ( )

Definition at line 53 of file DatabaseMssql.php.

◆ update()

DatabaseMssql::update (   $table,
  $values,
  $conds,
  $fname = __METHOD__,
  $options = [] 
)

UPDATE wrapper.

Takes a condition array and a SET array.

Parameters
string$tableName of the table to UPDATE. This will be passed through Database::tableName().
array$valuesAn array of values to SET. For each array element, the key gives the field name, and the value gives the data to set that field to. The data will be quoted by Database::addQuotes().
array$condsAn array of conditions (WHERE). See Database::select() for the details of the format of condition arrays. Use '*' to update all rows.
string$fnameThe function name of the caller (from METHOD), for logging and profiling.
array$optionsAn array of UPDATE options, can be:
  • IGNORE: Ignore unique key conflicts
  • LOW_PRIORITY: MySQL-specific, see MySQL manual.
Returns
bool
Exceptions
DBUnexpectedError
Exception

Definition at line 761 of file DatabaseMssql.php.

References $e, $options, getBinaryColumns(), LIST_AND, LIST_SET, makeList(), query, and tableName().

Member Data Documentation

◆ $mAffectedRows

DatabaseMssql::$mAffectedRows = null
protected

Definition at line 34 of file DatabaseMssql.php.

Referenced by affectedRows().

◆ $mBinaryColumnCache

DatabaseMssql::$mBinaryColumnCache = null
protected

Definition at line 38 of file DatabaseMssql.php.

◆ $mBitColumnCache

DatabaseMssql::$mBitColumnCache = null
protected

Definition at line 39 of file DatabaseMssql.php.

◆ $mIgnoreDupKeyErrors

DatabaseMssql::$mIgnoreDupKeyErrors = false
protected

Definition at line 40 of file DatabaseMssql.php.

◆ $mIgnoreErrors

DatabaseMssql::$mIgnoreErrors = []
protected

Definition at line 41 of file DatabaseMssql.php.

Referenced by doQuery().

◆ $mInsertId

DatabaseMssql::$mInsertId = null
protected

Definition at line 32 of file DatabaseMssql.php.

Referenced by insertId().

◆ $mLastResult

DatabaseMssql::$mLastResult = null
protected

Definition at line 33 of file DatabaseMssql.php.

◆ $mPort

DatabaseMssql::$mPort
protected

Definition at line 43 of file DatabaseMssql.php.

◆ $mPrepareStatements

DatabaseMssql::$mPrepareStatements = true
protected

Definition at line 37 of file DatabaseMssql.php.

◆ $mScrollableCursor

DatabaseMssql::$mScrollableCursor = true
protected

Definition at line 36 of file DatabaseMssql.php.

◆ $mSubqueryId

DatabaseMssql::$mSubqueryId = 0
protected

Definition at line 35 of file DatabaseMssql.php.

Referenced by buildGroupConcatField(), and limitResult().


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