16.20 - VARCHAR and VARBYTE Result Behavior - 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)

Teradata Database 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.