SPI_getargcount
return the number of arguments needed by a statement prepared by SPI_prepare
- Provided by: postgresql-doc-12 (Version: 12.22-0ubuntu0.20.04.4)
- Source: postgresql-12
- Report a bug
return the number of arguments needed by a statement prepared by SPI_prepare
int SPI_getargcount(SPIPlanPtr plan)
SPI_getargcount returns the number of arguments needed to execute a statement prepared by SPI_prepare.
SPIPlanPtr plan
The count of expected arguments for the plan. If the plan is NULL or invalid, SPI_result is set to SPI_ERROR_ARGUMENT and -1 is returned.