ENABLE_LOB_VARIABLES option

Function

Controls the data type conversion of large object variables.

Allowed values

ON, OFF

Default

OFF

Scope

DBA permissions are not required to set this option. Can be set temporary, for an individual connection, or for the PUBLIC group. Takes effect immediately.

Description

This option controls the data type conversion of large object variables. When ENABLE_LOB_VARIABLES is OFF, large object variables less than 32K are implicitly converted; an error is reported if a large object variable is greater than or equal to 32K. A LONG VARCHAR variable is implicitly converted to a VARCHAR data type and truncated at 32K. A LONG BINARY variable is implicitly converted to a VARBINARY data type and truncated at 32K.

When ENABLE_LOB_VARIABLES is ON, large object variables of any size retain their original data type and size.

Example

To retain the data type and size of large object variables greater than 32K:

SET TEMPORARY OPTION ENABLE_LOB_VARIABLES = ON