Postgres module

Error_Fields

structsince 0.30.0Source

The other fields of an ErrorResponse or NoticeResponse. Empty strings and zeros for the ones the server did not send, and for errors that did not come from the server.

Fields

severity: string
"ERROR", "FATAL", "PANIC" (never localized), "NOTICE", ...
detail: string
hint: string
position: s32
1-based character in the query the error points at, or 0
internal_position: s32
internal_query: string
where: string
the call stack of a PL/pgSQL function, say
schema: string
table: string
column: string
data_type: string
constraint: string
file: string
the server's source location
line: string
routine: string
storage: [] u8
The bytes every string of the error points into, stored after this struct in the same block.

See also