16.20 - array_name - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

C Data Type Definition

typedef int ARRAY_HANDLE;

Usage

Use the ARRAY_HANDLE data type when passing an ARRAY argument or returning an ARRAY type result.

Here is an example using an ARRAY parameter in a UDF definition and ARRAY_HANDLE in a C function declaration.

SQL Function Definition Equivalent C Function Declaration
CREATE FUNCTION F1 (
  A phonenumbers_ary)
RETURNS phonenumbers_ary
 ...;
void f1( ARRAY_HANDLE *a,
         ARRAY_HANDLE *result,
   ... )
{  ... }