EXTFNAPIV4_DESCRIBE_COL_CONSTANT_VALUE (Get)

The EXTFNAPIV4_DESCRIBE_COL_CONSTANT_VALUE attribute indicates the constant value of a column. Used in a describe_column_get scenario.

Data Type

an_extfn_value

Description

The value of the column, if it is constant for the statement lifetime. If EXTFNAPIV4_DESCRIBE_COL_IS_CONSTANT for this column returns true, this value is available. This property is valid only for table arguments.

Usage

For columns of input tables that have a constant value, the value is returned. If the value is unavailable, then NULL is returned.

Returns

On success, returns the sizeof(a_sql_byte), if the value was returned, or:
  • EXTFNAPIV4_DESCRIBE_NOT_AVAILABLE – the attribute is not available to get. Returned, if the column is not involved in the query, or if the value is not considered constant.

On failure, returns one of the generic describe_column errors, or:

Query Processing Phases

Valid in: