SPI_fname

Name

SPI_fname --  Finds the attribute name for the specified attribute 指定属性の属性名を検索します。

Synopsis

SPI_fname(tupdesc, fname)

入力

TupleDesc tupdesc

Input tuple description

対象タプルの記述子。

char * fnumber

Attribute number

属性番号。

出力

char *

Attribute name

属性名。

NULL if fnumber is out of range
NULL 引数 fnumber が範囲外の場合。
SPI_result set to SPI_ERROR_NOATTRIBUTE on error
エラーの場合は、SPI_result に SPI_ERROR_NOATTRIBUTE が設定されます。

説明

SPI_fname returns the attribute name for the specified attribute.

SPI_fname は指定された属性の属性名を返します。

使い方

Attribute numbers are 1 based.

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

アルゴリズム

Returns a newly-allocated copy of the attribute name.

新しく割り当てたメモリに属性名をコピーしたものを返します。