Updated on 2023-10-23 GMT+08:00

PQerrorMessage

Function

PQerrorMessage is used to return error information on a connection.

Prototype

char* PQerrorMessage(const PGconn* conn);

Parameter

Table 1

Keyword

Parameter Description

conn

Connection handle.

Return Value

char pointers

Example

For details, see Example.