JSON_OBJECT Function Returns NULL In 19c When Using PLS_INTEGER Instead Of INTEGER
(Doc ID 2935013.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 19.18.0.0.0 and laterInformation in this document applies to any platform.
Symptoms
The json_object function returns "null" when using the pls_integer type.
Test case replicating:
SQL> set serveroutput on
declare
variable_v pls_integer := 2017;
begin
dbms_output.put_line(json_object( 'variable_v' value variable_v));
end;
/
{"variable_v":null} <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Replicating
PL/SQL procedure successfully completed.
Changes
Upgrade from 12c to 19c
--------
It works fine in 12.1 or 12.2.
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 |