SPI_GETBINVAL(3)
π NAME π
okay bestie, this is the SPI_GETBINVAL(3) page π
and it's literally about SPI_getbinval β the function that returns the binary value of the specified column. slay.
β¨ SYNOPSIS β¨
Datum SPI_getbinval(HeapTuple row, TupleDesc rowdesc, int colnumber,
bool * isnull)
π DESCRIPTION π
SPI_getbinval returns the value of the specified column in the internal form (as type Datum). periodt.
This function does not allocate new space for the datum. the way that matters: in the case of a pass-by-reference data type, the return value will be a pointer into the passed row. no cap. π«Ά
π«Ά ARGUMENTS π«Ά
HeapTuple rowβ input row to be examined πTupleDesc rowdescβ input row description πint colnumberβ column number (count starts at1) π’bool * isnullβ flag for a null value in the column π©
π₯ RETURN VALUE π₯
The binary value of the column is returned. The variable pointed to by isnull is set to true if the column is null, else to false. π
β οΈ on error:SPI_resultis set toSPI_ERROR_NOATTRIBUTE. that's the error vibe check, bestie.
mwah π β source/version: PostgreSQL 13.23 documentation; date: 2025.
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms