FNC_TblOpSetOutputColDef Function | C Library Functions | Teradata Vantage - FNC_TblOpSetOutputColDef - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
rin1593638965306.ditamap
dita:ditavalPath
rin1593638965306.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantageā„¢

Communicates the output columns of an output stream to the parser.

Syntax

void
FNC_TblOpSetOutputColDef(int                    streamno,
                         FNC_TblOpColumnDef_t  *coldefs);

Syntax Elements

streamno
the output stream number.
coldefs
the columns definition.

For details about the FNC_TblOpColumnDef_t structure, see Table Operator Data Structures.

Usage Notes

If no contract function is specified, the parser sets the output columns as indicated by the RETURNS clause.

This function will error in the following cases:
  • If both the contract function and an explicit column definition list are specified.
  • The stream number is invalid.
  • coldefs include invalid data types, invalid character set, or coldef->length is invalid for the number of columns in coldef->num_columns.

Example Using FNC_TblOpSetOutputColDef

See C Table Operator for an example of how to use this function.