MediaWiki REL1_40
Wikimedia\Rdbms\QueryStatus Class Reference
Collaboration diagram for Wikimedia\Rdbms\QueryStatus:

Public Member Functions

 __construct ( $res, int $affected, string $error, $errno)
 

Public Attributes

int string $code
 Error code or zero.
 
int $flags
 Error flag bit field of Database::ERR_* constants.
 
string $message
 Error message or empty string.
 
ResultWrapper bool null $res
 Result set.
 
int $rowsAffected
 Affected row count.
 
int $rowsReturned
 Returned row count.
 

Detailed Description

Since
1.39

Definition at line 26 of file QueryStatus.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Rdbms\QueryStatus::__construct ( $res,
int $affected,
string $error,
$errno )
Access: internal
Should only be constructed by Database
Parameters
ResultWrapper | bool | null$res
int$affected
string$error
int | string$errno

Definition at line 48 of file QueryStatus.php.

References Wikimedia\Rdbms\QueryStatus\$res, and Wikimedia\Rdbms\ResultWrapper\numRows().

Member Data Documentation

◆ $code

int string Wikimedia\Rdbms\QueryStatus::$code

Error code or zero.

Definition at line 36 of file QueryStatus.php.

◆ $flags

int Wikimedia\Rdbms\QueryStatus::$flags

Error flag bit field of Database::ERR_* constants.

Definition at line 38 of file QueryStatus.php.

◆ $message

string Wikimedia\Rdbms\QueryStatus::$message

Error message or empty string.

Definition at line 34 of file QueryStatus.php.

◆ $res

ResultWrapper bool null Wikimedia\Rdbms\QueryStatus::$res

Result set.

Definition at line 28 of file QueryStatus.php.

Referenced by Wikimedia\Rdbms\QueryStatus\__construct().

◆ $rowsAffected

int Wikimedia\Rdbms\QueryStatus::$rowsAffected

Affected row count.

Definition at line 32 of file QueryStatus.php.

◆ $rowsReturned

int Wikimedia\Rdbms\QueryStatus::$rowsReturned

Returned row count.

Definition at line 30 of file QueryStatus.php.


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