PQexecPreparedBatchEx
Description
A batch request API for BatchErrorMode.
Prototype
PGresult* PQexecPreparedBatchEx(PGconn* conn, const char* stmtName, int nParams, int nBatchCount, const char* const* paramValues, const int* paramLengths, const int* paramFormats, int resultFormat, PQStmtAttr attr, int allowedErrorsCount);
Parameters
Keyword |
Description |
---|---|
conn |
Connection handle. |
stmtName |
Name of the prepared statement. |
nParams |
Number of fields of a dynamically bound parameter. |
nBatchCount |
Number of lines to be bound in batches. |
paramValues |
Bound parameter value. |
paramLengths |
Data length of a parameter value.
NOTICE:
In the following cases, the parameter length is forcibly set to the corresponding value of paramLengths:
In these cases, paramLengths cannot be empty, and the caller must ensure the correctness of the parameter length. |
paramFormats |
Parameter formats (text or binary). |
resultFormat |
Return result format (text or binary). |
attr |
Specifies whether to skip errors in batches. Value range: STMT_DEFAULT and STMT_BATCH_ERRORS. |
allowedErrorsCount |
Maximum number of errors that can be skipped in batches. |
Return Values
PGresult pointers.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.