17.20 - SQL_DESC_TD_UDT_INDICATOR - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2022-06-21
dita:mapPath
uqj1639470627591.ditamap
dita:ditavalPath
nkw1500504256726.ditaval

The SQL_DESC_TD_UDT_INDICATOR descriptor record field contains UDT Indicator of the column. When the column is defined as UDT, then the SQL_DESC_TD_UDT_INDICATOR describes type of the UDT defined. When the column is defined as a non-UDT, then the SQL_DESC_TD_UDT_INDICATOR will always have a value zero. The value of SQL_DESC_TD_UDT_INDICATOR descriptor field are exposed in the header file tdsql.h.

When extended statement information is not available, the value of the SQL_DESC_TD_UDT_INDICATOR descriptor field will always be zero.

With extended statement information available, the value of the SQL_DESC_TD_UDT_INDICATOR descriptor field will have one of the UDT Indicator values from the following table based on the column definition.

UDT Indicator Value Definition Description
1 SQL_TD_UDT_STRUCTURED Structured UDT
2 SQL_TD_UDT_DISTINCT Distinct UDT
3 SQL_TD_UDT_INTERNAL Internal UDT
0 SQL_TD_UDT_BASE For all other data types