Skip to main content

Module runtime_diagnostics

Module runtime_diagnostics 

Source
Expand description

SQLSTATE matching, row diagnostics, and RAISE formatting.

Functions§

arm_matches
Match an exception arm’s condition list against a SQLSTATE.
catchable
format_raise_message
Substitute % placeholders in a RAISE format string.
looks_like_sqlstate
raise_text
Text form of a value inside a RAISE message (NULL renders as <NULL>, booleans as t / f, arrays in brace form).
result_row_count
result_row_values
Copy one result row in declared output-column order. Positional result storage is authoritative when labels repeat; named rows are only the public compatibility carrier used by SQLResult::value_at’s final fallback.
return_query_context_error
routine_message
Message text exposed through SQLERRM: user-routine errors keep their raw message, engine errors keep their display form.
sqlstate_matches
strict_into_check
to_i64_value