MediaWiki  REL1_22
PostgresTransactionState Class Reference

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

List of all members.

Public Member Functions

 __construct ($conn)
 check ()
 update ()

Static Public Attributes

static $WATCHED

Protected Member Functions

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

Detailed Description

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

Since:
1.19

Definition at line 136 of file DatabasePostgres.php.


Constructor & Destructor Documentation

Definition at line 158 of file DatabasePostgres.php.

References update().


Member Function Documentation

Definition at line 171 of file DatabasePostgres.php.

References as, global, log_changed(), and update().

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

Definition at line 191 of file DatabasePostgres.php.

Referenced by log_changed().

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

Definition at line 199 of file DatabasePostgres.php.

References describe_changed(), and wfDebug().

Referenced by check().

Definition at line 164 of file DatabasePostgres.php.

References array().

Referenced by __construct(), and check().


Member Data Documentation

PostgresTransactionState::$WATCHED [static]
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 138 of file DatabasePostgres.php.


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