BadStatementExceptionMessage
Messages for BadStatementException categorized by their root cause.
Categories primarily cover PostgreSQL Class 42 (Syntax Error or Access Rule Violation) and framework-level validation errors during query building.
Entries
Mandatory clause (like WHERE in DELETE) is missing.
Named parameters defined in SQL are missing in the builder.
Same parameter name used multiple times with conflicting definitions.
Operation attempted in a state not allowed by the transaction (e.g., write in read-only transaction).
Query builder is in an inconsistent state for the requested operation.
Iterative query with fetchSize > 0 requires an active transaction.
The requested feature is not supported by the current database provider or configuration.
SQL syntax is malformed (PostgreSQL 42601, 42602, etc.).
Referenced table, column, function, or other object does not exist (PostgreSQL 42703, 42P01, etc.).
Attempt to create an object that already exists (PostgreSQL 42701, 42P07, etc.).
Reference to an object is ambiguous (PostgreSQL 42702, 42725, etc.).
Data type mismatch or invalid type coercion (PostgreSQL 42804, 42P18, etc.).
General error in object definition or schema mismatch.
Properties
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared.