15.00 - Restrictions on Declaring an External C++ Table Function - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

Product
Teradata Database
Release Number
15.00
Content Type
Programming Reference
Publication ID
B035-1184-015K
Language
English (United States)

Restrictions on Declaring an External C++ Table Function

If you specify CPP in the LANGUAGE CLAUSE, then you must declare the main C++ function as extern “C” to ensure that the function name is not converted to an overloaded C++ name. For example:

    extern “C”
    void my_cpp(long int *input_int, long int *result, char sqlstate[6])
    {

See SQL External Routine Programming for details.