SPI_gettype

Name

SPI_gettype --  Returns the type name of the specified attribute 指定属性の型名を返します。

Synopsis

SPI_gettype(tupdesc, fnumber)

入力

TupleDesc tupdesc

Input tuple description

対象タプルの記述子。

int fnumber

Attribute number

属性番号。

出力

char *

The type name for the specified attribute number

指定属性番号の型名。

SPI_result

SPI_ERROR_NOATTRIBUTE

説明

SPI_gettype returns a copy of the type name for the specified attribute.

SPI_gettype は、指定属性の型名のコピーを返し ます。

使い方

Attribute numbers are 1 based.

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

Algorithm

Does not allocate new space for the binary value.

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