MediaWiki  REL1_24
PostgresTransactionState Class Reference

Used to debug transaction processing Only used if $wgDebugDBTransactions is true. More...

Collaboration diagram for PostgresTransactionState:

List of all members.

Public Member Functions

 __construct ($conn)
 check ()
 update ()

Protected Member Functions

 describe_changed ($status, $desc_table)
 log_changed ($old, $new, $watched)

Private Attributes

array $mCurrentState
 *
array $mNewState
 *

Static Private Attributes

static $WATCHED

Detailed Description

Used to debug transaction processing Only used if $wgDebugDBTransactions is true.

Since:
1.19

Definition at line 138 of file DatabasePostgres.php.


Constructor & Destructor Documentation

Definition at line 163 of file DatabasePostgres.php.

References update().


Member Function Documentation

Definition at line 176 of file DatabasePostgres.php.

PostgresTransactionState::describe_changed ( status,
desc_table 
) [protected]

Definition at line 195 of file DatabasePostgres.php.

PostgresTransactionState::log_changed ( old,
new,
watched 
) [protected]

Definition at line 203 of file DatabasePostgres.php.

Definition at line 169 of file DatabasePostgres.php.

Referenced by __construct().


Member Data Documentation

array PostgresTransactionState::$mCurrentState [private]

*

Definition at line 161 of file DatabasePostgres.php.

array PostgresTransactionState::$mNewState [private]

*

Definition at line 159 of file DatabasePostgres.php.

PostgresTransactionState::$WATCHED [static, private]
Initial value:
 array(
        array(
            "desc" => "%s: Connection state changed from %s -> %s\n",
            "states" => array(
                PGSQL_CONNECTION_OK => "OK",
                PGSQL_CONNECTION_BAD => "BAD"
            )
        ),
        array(
            "desc" => "%s: Transaction state changed from %s -> %s\n",
            "states" => array(
                PGSQL_TRANSACTION_IDLE => "IDLE",
                PGSQL_TRANSACTION_ACTIVE => "ACTIVE",
                PGSQL_TRANSACTION_INTRANS => "TRANS",
                PGSQL_TRANSACTION_INERROR => "ERROR",
                PGSQL_TRANSACTION_UNKNOWN => "UNKNOWN"
            )
        )
    )

Definition at line 139 of file DatabasePostgres.php.


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