1SPI_GETBINVAL(3)         PostgreSQL 11.3 Documentation        SPI_GETBINVAL(3)
2
3
4

NAME

6       SPI_getbinval - return the binary value of the specified column
7

SYNOPSIS

9       Datum SPI_getbinval(HeapTuple row, TupleDesc rowdesc, int colnumber,
10                           bool * isnull)
11

DESCRIPTION

13       SPI_getbinval returns the value of the specified column in the internal
14       form (as type Datum).
15
16       This function does not allocate new space for the datum. In the case of
17       a pass-by-reference data type, the return value will be a pointer into
18       the passed row.
19

ARGUMENTS

21       HeapTuple row
22           input row to be examined
23
24       TupleDesc rowdesc
25           input row description
26
27       int colnumber
28           column number (count starts at 1)
29
30       bool * isnull
31           flag for a null value in the column
32

RETURN VALUE

34       The binary value of the column is returned. The variable pointed to by
35       isnull is set to true if the column is null, else to false.
36
37       SPI_result is set to SPI_ERROR_NOATTRIBUTE on error.
38
39
40
41PostgreSQL 11.3                      2019                     SPI_GETBINVAL(3)
Impressum