My Oracle Support Banner

PL/SQL Block Silently Truncates Bind Variable Value Instead of Showing Error (Doc ID 2997055.1)

Last updated on JANUARY 09, 2024

Applies to:

SQL*Plus - Version 12.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Consider this sample PL/SQL anonymous block code.

Under non unicode database ( not a AL32UTF8, UTF8) environment 



In the first code returns the error message which is expected behavior. The second code is truncating the value which is incorrect. The value '12' is truncated to '1' and there is no error.
This behavior is only see for UNICODE NLS character set.


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.