FNC_GetXMLResultClob Function | C Library Functions | Teradata Vantage - FNC_GetXMLResultClob - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Purpose

Returns a result LOB locator that will be used to set the XML return value.

Syntax

void
FNC_GetXMLResultClob(XML_HANDLE           xmlHandle,
                     LOB_RESULT_LOCATOR *xmlClob)
XML_HANDLE xmlHandle
A handle to an XML type that is defined to be a return value for a UDF/UDM or an INOUT/OUT parameter to an external stored procedure.
LOB_RESULT_LOCATOR *xmlClob
A pointer to the LOB locator that is used to set the XML type return value.

Usage Notes

FNC_GetXMLResultClob is used to get a result LOB locator that will be used to set the XML return value.

The XML handle xmlHandle is passed as input and a LOB locator xmlClob is returned from the function. You can then use LOB FNC routines to set the CLOB value using the xmlClob locator. You must use the UNICODE character set to write to the CLOB.

FNC_GetXMLResultClob can only be used with LOB-based XML return values, otherwise you will get an error.