FNC_GetStructuredAttributeByNdxの使用例 - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL外部ルーチン プログラミング

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
2019年3月
Language
日本語
Last Update
2019-10-29
dita:mapPath
ja-JP/uhh1512082756414.ditamap
dita:ditavalPath
ja-JP/uhh1512082756414.ditaval
dita:id
B035-1147
Product Category
Software
Teradata Vantage
void getY( UDT_HANDLE *pointUdt,
           INTEGER    *result,
           char        sqlstate[6])
{
    INTEGER y;
    int nullIndicator;
    int length;

    /* Get the y attribute (second attribute) of pointUdt. */
    FNC_GetStructuredAttributeByNdx(*pointUdt, 1, &y, SIZEOF_INTEGER,                                      &nullIndicator, &length); 
    if (nullIndicator == -1) {
        /* do null handling here */
        ...
        return;
    }

    ...
}