Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbe03e8

Browse files
committed
Update test coverage and documentation
1 parent dc14dc7 commit cbe03e8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/userguide/expectations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,10 @@ FAILURE
16451645
16461646
utPLSQL is capable of comparing json data-types of `json_element_t` **on Oracle 12.2 and above**, and also `json` **on Oracle 21 and above**
16471647
1648+
**Note:**
1649+
> Whenever a database is upgraded to compatible version the utPLSQL needs to be reinstalled to pick up json changes. E.g. upgrade from 18c to 21c to enable `json` type compare.
1650+
1651+
16481652
### Notes on comparison of json data
16491653
16501654
- Json data can contain objects, scalar or arrays.

source/expectations/data_values/ut_compound_data_helper.pkb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,6 @@ create or replace package body ut_compound_data_helper is
786786
begin
787787
$if dbms_db_version.version >= 21 $then
788788
l_obj := case when a_json_t is null then cast (null as json_element_t ) else json_element_t.parse(json_query(a_json_t, '$' returning clob)) end;
789-
$else
790-
l_obj := null;
791789
$end
792790
return l_obj;
793791
end;

0 commit comments

Comments
 (0)