SPI_getbinval

Name

SPI_getbinval --  Returns the binary value of the specified attribute 指定属性のバイナリ値を返します。

Synopsis

SPI_getbinval(tuple, tupdesc, fnumber, isnull)

入力

HeapTuple tuple

Input tuple to be examined

処理対象タプル。

TupleDesc tupdesc

Input tuple description

対象タプルの記述子。

int fnumber

Attribute number

属性番号。

出力

Datum

Attribute binary value

属性のバイナリ値。

bool * isnull

flag for null value in attribute

属性が null かどうかを示すフラグ。

SPI_result

SPI_ERROR_NOATTRIBUTE

説明

SPI_getbinval returns the binary value of the specified attribute.

SPI_getbinval は、指定属性のバイナリ値を返します。

使い方

Attribute numbers are 1 based.

属性番号は 1 から始まります。

アルゴリズム

Does not allocate new space for the binary value.

バイナリ値格納用には新しくメモリを割り当てません。