PL/SQL Block Silently Truncates Bind Variable Value Instead of Showing Error
(Doc ID 2997055.1)
Last updated on AUGUST 28, 2024
Applies to:
SQL*Plus - Version 12.2.0.1 and laterInformation 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.
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 |
Cause |
Solution |
References |