Skip to main content

Module error

Module error 

Source
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§

ParseError
A parse/lex error. message is the full, ready-to-display text (the #[error] format is just "{message}"), so the 42601 “syntax error at position N: …” framing is baked in by new, while a 54001 depth error (built by too_deep) renders its own PostgreSQL-faithful text verbatim.