Determines whether an error is raised when a string is truncated.
On, Off
On
PUBLIC role | For current user | For other users | |
---|---|---|---|
Allowed to set permanently? | Yes, with SET ANY PUBLIC OPTION | Yes | Yes, with SET ANY PUBLIC OPTION |
Allowed to set temporarily? | Yes, with SET ANY PUBLIC OPTION | Yes (current connection only) | No |
If the truncated characters or binary data consist only of spaces (x20), no exception is raised. The setting of On corresponds to ANSI/ISO SQL Standard behavior. When this option is set to Off, the exception is not raised and the character string is silently truncated.
String truncation may occur in several places. For example, using INSERT, UPDATE, CAST, or assignment to a variable may truncate a string if the declared destination type is too short. Truncation can occur for both character and binary data.