FNC_TblGetColDef returns a pointer to an FNC_ColumnDef_t structure that contains all the result column definitions.
If the table function that calls FNC_TblGetColDef is not a table function with dynamic result row specification, FNC_TblGetColDef returns a NULL pointer.
FNC_ColumnDef_t is defined as:
typedef struct { int num_columns; parm_t column_types[1]; } FNC_ColumnDef_t;
Member ... | Specifies ... |
---|---|
num_columns | the number of entries in the column_types array, which is the same as the number of result columns for the table function execution. |
column_types | a parm_t array that provides the data type and attributes of each result column. The parm_t structure is defined in sqltypes_td.h as: typedef struct parm_t { dtype_et datatype; dmode_et direction; charset_et charset; union { long length; int intervalrange; int precision; struct { int totaldigit; int fracdigit; } range; } size; } parm_t; where:
The direction member of the parm_t structure does not provide information about result column definitions. For details on the direction member of the parm_t structure, see FNC_CallSP.
|