VARCHAR and VARBYTE Result Behavior - 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ā„¢

Vantage does not truncate VARCHAR or VARBYTE return values.

Any attempt by the function to return a VARCHAR or VARBYTE value where the length is greater than the length specified in the RETURNS clause of the CREATE FUNCTION or REPLACE FUNCTION statement generates a 7509 error.

For details on using the C types that map to VARCHAR and VARBYTE, see SQL Data Type Mapping.