SPI_getbinval <refpurpose>return the binary value of the specified column</refpurpose> — 指定した列のバイナリ値を返す
Datum SPI_getbinval(HeapTuplerow, TupleDescrowdesc, intcolnumber, bool *isnull)
<function>SPI_getbinval</function> returns the value of the
specified column in the internal form (as type <type>Datum</type>).
SPI_getbinval は指定された列の値を内部形式で(Datumとして)返します。
This function does not allocate new space for the datum. In the case of a pass-by-reference data type, the return value will be a pointer into the passed row. この関数はデータ用に新しい領域を確保しません。 参照渡しのデータ型の場合、戻り値は渡された行の内部を示すポインタとなります。
HeapTuple rowinput row to be examined 対象とする入力行
TupleDesc rowdescinput row description 入力行の記述
int colnumbercolumn number (count starts at 1) (1から始まる)列番号
bool * isnullflag for a null value in the column 列のNULL値についてのフラグ
The binary value of the column is returned. The variable pointed
to by <parameter>isnull</parameter> is set to true if the column is
null, else to false.
列のバイナリ値が返されます。
isnullで指し示される変数は、列がNULLならば真に、さもなくば、偽に設定されます。
<varname>SPI_result</varname> is set to
<symbol>SPI_ERROR_NOATTRIBUTE</symbol> on error.
エラー時、SPI_resultはSPI_ERROR_NOATTRIBUTEに設定されます。