Enum postgres::error::SqlState [] [src]

pub enum SqlState {
    SuccessfulCompletion,
    Warning,
    DynamicResultSetsReturned,
    ImplicitZeroBitPadding,
    NullValueEliminatedInSetFunction,
    PrivilegeNotGranted,
    PrivilegeNotRevoked,
    WarningStringDataRightTruncation,
    DeprecatedFeature,
    NoData,
    NoAdditionalDynamicResultSetsReturned,
    SqlStatementNotYetComplete,
    ConnectionException,
    ConnectionDoesNotExist,
    ConnectionFailure,
    SqlclientUnableToEstablishSqlconnection,
    SqlserverRejectedEstablishmentOfSqlconnection,
    TransactionResolutionUnknown,
    ProtocolViolation,
    TriggeredActionException,
    FeatureNotSupported,
    InvalidTransactionInitiation,
    LocatorException,
    InvalidLocatorSpecification,
    InvalidGrantor,
    InvalidGrantOperation,
    InvalidRoleSpecification,
    DiagnosticsException,
    StackedDiagnosticsAccessedWithoutActiveHandler,
    CaseNotFound,
    CardinalityViolation,
    DataException,
    ArraySubscriptError,
    CharacterNotInRepertoire,
    DatetimeFieldOverflow,
    DivisionByZero,
    ErrorInAssignment,
    EscapeCharacterConflict,
    IndicatorOverflow,
    IntervalFieldOverflow,
    InvalidArgumentForLogarithm,
    InvalidArgumentForNtileFunction,
    InvalidArgumentForNthValueFunction,
    InvalidArgumentForPowerFunction,
    InvalidArgumentForWidthBucketFunction,
    InvalidCharacterValueForCast,
    InvalidDatetimeFormat,
    InvalidEscapeCharacter,
    InvalidEscapeOctet,
    InvalidEscapeSequence,
    NonstandardUseOfEscapeCharacter,
    InvalidIndicatorParameterValue,
    InvalidParameterValue,
    InvalidRegularExpression,
    InvalidRowCountInLimitClause,
    InvalidRowCountInResultOffsetClause,
    InvalidTablesampleArgument,
    InvalidTablesampleRepeat,
    InvalidTimeZoneDisplacementValue,
    InvalidUseOfEscapeCharacter,
    MostSpecificTypeMismatch,
    DataNullValueNotAllowed,
    NullValueNoIndicatorParameter,
    NumericValueOutOfRange,
    StringDataLengthMismatch,
    DataStringDataRightTruncation,
    SubstringError,
    TrimError,
    UnterminatedCString,
    ZeroLengthCharacterString,
    FloatingPointException,
    InvalidTextRepresentation,
    InvalidBinaryRepresentation,
    BadCopyFileFormat,
    UntranslatableCharacter,
    NotAnXmlDocument,
    InvalidXmlDocument,
    InvalidXmlContent,
    InvalidXmlComment,
    InvalidXmlProcessingInstruction,
    IntegrityConstraintViolation,
    RestrictViolation,
    NotNullViolation,
    ForeignKeyViolation,
    UniqueViolation,
    CheckViolation,
    ExclusionViolation,
    InvalidCursorState,
    InvalidTransactionState,
    ActiveSqlTransaction,
    BranchTransactionAlreadyActive,
    HeldCursorRequiresSameIsolationLevel,
    InappropriateAccessModeForBranchTransaction,
    InappropriateIsolationLevelForBranchTransaction,
    NoActiveSqlTransactionForBranchTransaction,
    ReadOnlySqlTransaction,
    SchemaAndDataStatementMixingNotSupported,
    NoActiveSqlTransaction,
    InFailedSqlTransaction,
    IdleInTransactionSessionTimeout,
    InvalidSqlStatementName,
    TriggeredDataChangeViolation,
    InvalidAuthorizationSpecification,
    InvalidPassword,
    DependentPrivilegeDescriptorsStillExist,
    DependentObjectsStillExist,
    InvalidTransactionTermination,
    SqlRoutineException,
    FunctionExecutedNoReturnStatement,
    SqlRoutineModifyingSqlDataNotPermitted,
    SqlRoutineProhibitedSqlStatementAttempted,
    SqlRoutineReadingSqlDataNotPermitted,
    InvalidCursorName,
    ExternalRoutineException,
    ContainingSqlNotPermitted,
    ForeignRoutineModifyingSqlDataNotPermitted,
    ForeignRoutineProhibitedSqlStatementAttempted,
    ForeignRoutineReadingSqlDataNotPermitted,
    ExternalRoutineInvocationException,
    InvalidSqlstateReturned,
    ExternalRoutineInvocationNullValueNotAllowed,
    TriggerProtocolViolated,
    SrfProtocolViolated,
    EventTriggerProtocolViolated,
    SavepointException,
    InvalidSavepointSpecification,
    InvalidCatalogName,
    InvalidSchemaName,
    TransactionRollback,
    TransactionIntegrityConstraintViolation,
    SerializationFailure,
    StatementCompletionUnknown,
    DeadlockDetected,
    SyntaxErrorOrAccessRuleViolation,
    SyntaxError,
    InsufficientPrivilege,
    CannotCoerce,
    GroupingError,
    WindowingError,
    InvalidRecursion,
    InvalidForeignKey,
    InvalidName,
    NameTooLong,
    ReservedName,
    DatatypeMismatch,
    IndeterminateDatatype,
    CollationMismatch,
    IndeterminateCollation,
    WrongObjectType,
    UndefinedColumn,
    UndefinedFunction,
    UndefinedTable,
    UndefinedParameter,
    UndefinedObject,
    DuplicateColumn,
    DuplicateCursor,
    DuplicateDatabase,
    DuplicateFunction,
    DuplicatePreparedStatement,
    DuplicateSchema,
    DuplicateTable,
    DuplicateAlias,
    DuplicateObject,
    AmbiguousColumn,
    AmbiguousFunction,
    AmbiguousParameter,
    AmbiguousAlias,
    InvalidColumnReference,
    InvalidColumnDefinition,
    InvalidCursorDefinition,
    InvalidDatabaseDefinition,
    InvalidFunctionDefinition,
    InvalidPreparedStatementDefinition,
    InvalidSchemaDefinition,
    InvalidTableDefinition,
    InvalidObjectDefinition,
    WithCheckOptionViolation,
    InsufficientResources,
    DiskFull,
    OutOfMemory,
    TooManyConnections,
    ConfigurationLimitExceeded,
    ProgramLimitExceeded,
    StatementTooComplex,
    TooManyColumns,
    TooManyArguments,
    ObjectNotInPrerequisiteState,
    ObjectInUse,
    CantChangeRuntimeParam,
    LockNotAvailable,
    OperatorIntervention,
    QueryCanceled,
    AdminShutdown,
    CrashShutdown,
    CannotConnectNow,
    DatabaseDropped,
    SystemError,
    IoError,
    UndefinedFile,
    DuplicateFile,
    SnapshotTooOld,
    ConfigFileError,
    LockFileExists,
    FdwError,
    FdwColumnNameNotFound,
    FdwDynamicParameterValueNeeded,
    FdwFunctionSequenceError,
    FdwInconsistentDescriptorInformation,
    FdwInvalidAttributeValue,
    FdwInvalidColumnName,
    FdwInvalidColumnNumber,
    FdwInvalidDataType,
    FdwInvalidDataTypeDescriptors,
    FdwInvalidDescriptorFieldIdentifier,
    FdwInvalidHandle,
    FdwInvalidOptionIndex,
    FdwInvalidOptionName,
    FdwInvalidStringLengthOrBufferLength,
    FdwInvalidStringFormat,
    FdwInvalidUseOfNullPointer,
    FdwTooManyHandles,
    FdwOutOfMemory,
    FdwNoSchemas,
    FdwOptionNameNotFound,
    FdwReplyHandle,
    FdwSchemaNotFound,
    FdwTableNotFound,
    FdwUnableToCreateExecution,
    FdwUnableToCreateReply,
    FdwUnableToEstablishConnection,
    PlpgsqlError,
    RaiseException,
    NoDataFound,
    TooManyRows,
    AssertFailure,
    InternalError,
    DataCorrupted,
    IndexCorrupted,
    Other(String),
}

SQLSTATE error codes

Variants

00000

01000

0100C

01008

01003

01007

01006

01004

01P01

02000

02001

03000

08000

08003

08006

08001

08004

08007

08P01

09000

0A000

0B000

0F000

0F001

0L000

0LP01

0P000

0Z000

0Z002

20000

21000

22000

2202E

22021

22008

22012

22005

2200B

22022

22015

2201E

22014

22016

2201F

2201G

22018

22007

22019

2200D

22025

22P06

22010

22023

2201B

2201W

2201X

2202H

2202G

22009

2200C

2200G

22004

22002

22003

22026

22001

22011

22027

22024

2200F

22P01

22P02

22P03

22P04

22P05

2200L

2200M

2200N

2200S

2200T

23000

23001

23502

23503

23505

23514

23P01

24000

25000

25001

25002

25008

25003

25004

25005

25006

25007

25P01

25P02

25P03

26000

27000

28000

28P01

2B000

2BP01

2D000

2F000

2F005

2F002

2F003

2F004

34000

38000

38001

38002

38003

38004

39000

39001

39004

39P01

39P02

39P03

3B000

3B001

3D000

3F000

40000

40002

40001

40003

40P01

42000

42601

42501

42846

42803

42P20

42P19

42830

42602

42622

42939

42804

42P18

42P21

42P22

42809

42703

42883

42P01

42P02

42704

42701

42P03

42P04

42723

42P05

42P06

42P07

42712

42710

42702

42725

42P08

42P09

42P10

42611

42P11

42P12

42P13

42P14

42P15

42P16

42P17

44000

53000

53100

53200

53300

53400

54000

54001

54011

54023

55000

55006

55P02

55P03

57000

57014

57P01

57P02

57P03

57P04

58000

58030

58P01

58P02

72000

F0000

F0001

HV000

HV005

HV002

HV010

HV021

HV024

HV007

HV008

HV004

HV006

HV091

HV00B

HV00C

HV00D

HV090

HV00A

HV009

HV014

HV001

HV00P

HV00J

HV00K

HV00Q

HV00R

HV00L

HV00M

HV00N

P0000

P0001

P0002

P0003

P0004

XX000

XX001

XX002

An unknown code

Methods

impl SqlState
[src]

Creates a SqlState from its error code.

Returns the error code corresponding to the SqlState.

Trait Implementations

impl PartialEq for SqlState
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SqlState
[src]

impl Clone for SqlState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SqlState
[src]

Formats the value using the given formatter.