C/C++ Function Name | C/C++ UDMs | Teradata Vantage - C/C++ Function Name - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢

The name of the method in the C or C++ source code follows the C function naming conventions, with the additional restriction that the name cannot be longer than 30 characters.

In C++, the function definition must be preceded by extern "C" so that the function name is not converted to a C++ overloaded name. For example:

extern "C" 
void get_area( UDT_HANDLE *circleUDT, FLOAT *result, char sqlstate[6])
{
   ...
}

The function can call any module written in C++.

When you use the CREATE METHOD statement to install the UDM, you specify the name of the C or C++ function. For more information, see Installing the UDM.

On Linux, long names can sometimes cause errors when you install a UDM. For more information, see Argument list too long.