16.20 - Syntax - 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)
void
FNC_GetJSONInfo ( JSON_HANDLE   jsonHandle,
                  int          *maxLength,
                  charset_et   *charset,
                  int          *numLobs)
JSON_HANDLE jsonHandle
a handle to a JSON type instance.
JSON_HANDLE is defined in sqltypes_td.h as:
typedef int JSON_HANDLE;
int*maxLength
the maximum possible length of the JSON instance in bytes.
charset_et *charset
the character set of the JSON text, which is either UNICODE or LATIN.
int *numLobs
the number of LOBs used to store the JSON data. Valid values are as follows:
  • 0, which indicates that the data is not stored as a LOB
  • 1, which indicates that the data is stored as a LOB