Name

CLSQL-SQL-ERROR — condition representing errors during query or command execution

Condition Type

Class Precedence List

clsql-sql-error, clsql-error, error, serious-condition, clsql-condition, condition, t

Description

This condition represents errors that occur while executing SQL statements, either as part of query operations or command execution, either explicitly or implicitly, as caused e.g. by with-transaction. The following initialization arguments and accessors exist:

Initarg: :database

Accessor: clsql-sql-error-database

Description: The database object that was involved in the incident.

Initarg: :expression

Accessor: clsql-sql-error-expression

Description: The SQL expression whose execution caused the error.

Initarg: :errno

Accessor: clsql-sql-error-errno

Description: The numeric or symbolic error specification returned by the database back-end. The values and semantics of this are interface specific.

Initarg: :error

Accessor: clsql-sql-error-error

Description: A string describing the problem that occurred, possibly one returned by the database back-end.