Expand description
Parse/lex errors. Most map to SQLSTATE 42601 (syntax_error) and carry the
byte offset where the problem was detected. A too-deep query — one whose
nesting would overflow the parser/evaluator stack — instead maps to 54001
(statement_too_complex / “stack depth limit exceeded”), matching
PostgreSQL.
Structs§
- Parse
Error - A parse/lex error.
messageis the full, ready-to-display text (the#[error]format is just"{message}"), so the42601“syntax error at position N: …” framing is baked in bynew, while a54001depth error (built bytoo_deep) renders its own PostgreSQL-faithful text verbatim.