1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
15 TITLE="Interface Support Functions"
16 HREF="spi-interface-support.html"><LINK
19 HREF="spi-spi-fname.html"><LINK
22 HREF="spi-spi-getvalue.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="spi-spi-fname.html"
60 HREF="spi-spi-fname.html"
73 HREF="spi-spi-getvalue.html"
81 HREF="spi-spi-getvalue.html"
92 NAME="SPI-SPI-FNUMBER"
102 >SPI_fnumber -- determine the column number for the specified column name</DIV
107 CLASS="REFSYNOPSISDIV"
115 >int SPI_fnumber(TupleDesc <VAR
134 > returns the column number for the
135 column with the specified name.
141 > refers to a system column (e.g.,
145 >) then the appropriate negative column number will
146 be returned. The caller should be careful to test the return value
147 for exact equality to <TT
149 >SPI_ERROR_NOATTRIBUTE</TT
151 detect an error; testing the result for less than or equal to 0 is
152 not correct unless system columns should be rejected.
177 > input row description
204 > Column number (count starts at 1), or
207 >SPI_ERROR_NOATTRIBUTE</TT
208 > if the named column was not
217 SUMMARY="Footer navigation table"
228 HREF="spi-spi-fname.html"
246 HREF="spi-spi-getvalue.html"
262 HREF="spi-interface-support.html"