PLSQL_IMPLICIT_CONVERSION_BOOL
PLSQL_IMPLICIT_CONVERSION_BOOL allows or disallows implicit conversions in PL/SQL between numeric data types and the BOOLEAN data type, and between character data types and the BOOLEAN data type.
| Property | Description |
|---|---|
| Parameter type | Boolean |
| Default value | false |
| Modifiable | ALTER SESSION, ALTER SYSTEM |
| Modifiable in a PDB | Yes |
| Range of values | true | false |
| Basic | No |
When this parameter is set to true, PL/SQL supports the following implicit data type conversions:
-
Numeric data type to
BOOLEANdata type-
Non-zero numeric values are implicitly converted to the
BOOLEANvalueTRUE -
The numeric value of
0is implicitly converted to theBOOLEANvalueFALSE
-
-
Character data type to
BOOLEANdata type-
Character values such as
'true','t','yes','y','1', and'on'(case-insensitive) are implicitly converted to theBOOLEANvalueTRUE -
Character values such as
'false','f','no','n','0', and'off'(case-insensitive) are implicitly converted to theBOOLEANvalueFALSE
-
-
BOOLEANdata type to numeric data type-
The
BOOLEANvalueTRUEis implicitly converted to the numeric value1 -
The
BOOLEANvalueFALSEis implicitly converted to the numeric value0
-
-
BOOLEANdata type to character data type-
The
BOOLEANvalueTRUEis implicitly converted to the character value'TRUE' -
The
BOOLEANvalueFALSEis implicitly converted to the character value'FALSE'
-
When this parameter is set to false, PL/SQL does not support such implicit conversions.
Note: This parameter is available starting with Oracle AI Database 26ai.