Updated on 2025-05-29 GMT+08:00

PQGetBatchErrorMessage

Description

Obtains the information of the error with the specified value of idx in the batch request. (The value of idx starts from 0.)

Prototype

char* PQGetBatchErrorMessage(PGresult* result, int idx);

Parameters

Table 1 PQGetBatchErrorMessage parameters

Keyword

Description

result

Execution result of PQexecPreparedBatchEx

idx

Specifies the error number to be obtained (starting from 0).

Return Value

char pointers.