Truncation of Character String Arguments and Result | Teradata Vantage - 17.10 - Truncation of Character String Arguments and Result - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

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.