Method

PgsqlResultget_error_field

Declaration

const char*
pgsql_result_get_error_field (
  PgsqlResult* self,
  char code
)

Description

Gets a specific error field from the result.

Parameters

code

Type: char

The error field code (e.g. ‘S’ for severity, ‘C’ for code, etc.).

Return value

Type: const char*

The error field value, or NULL.

The returned data is owned by the instance.
The return value can be NULL.
The value is a NUL terminated UTF-8 string.