Truncation of Character String Arguments and Result | Teradata Vantage - Truncation of Character String Arguments and Result - 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™

The session transaction mode affects character string truncation.

IF the session transaction mode is … AND the function … THEN Vantage …
Teradata is passed a CHAR or VARCHAR input argument or returns a CHAR result that exceeds the maximum length specified in the CREATE FUNCTION or REPLACE FUNCTION statement truncates the argument or result without reporting an error.

Truncation on Kanji1 character strings containing multibyte characters might result in truncation of one byte of the multibyte character.

ANSI is passed a CHAR or VARCHAR input argument or returns a CHAR result that exceeds the maximum length specified in the CREATE FUNCTION or REPLACE FUNCTION statement truncates the argument or result of excess pad characters without reporting an error.

Truncation of other characters results in a truncation exception.