TransactionStateExceptionReason

Represents the transaction state that made a statement inadmissible.

Entries

Link copied to clipboard

The transaction is already doomed by an earlier error and rejects everything until it is rolled back (25P02).

Link copied to clipboard

A write was attempted inside a read-only transaction (25006).

Link copied to clipboard

The statement requires a transaction and none is open (25P01).

Link copied to clipboard

The statement refuses to run inside a transaction block, and one is open (25001).

Link copied to clipboard

Another class-25 state, including the two-phase-commit codes the driver does not otherwise touch.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.