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

Skip to content

Commit 3d3f0be

Browse files
committed
Update install on 11c to add new json type.
1 parent 9b8d7f7 commit 3d3f0be

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

source/expectations/json_objects_specs.sql

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ BEGIN
33
$if dbms_db_version.version >= 21 $then
44
dbms_output.put_line('Object exists , dont install');
55
$elsif dbms_db_version.version = 12 and dbms_db_version.release >= 2 or ( dbms_db_version.version > 12 and dbms_db_version.version < 21 ) $then
6-
dbms_output.put_line('Installing json structures specs.');
6+
dbms_output.put_line('Installing json structures specs for native json.');
7+
execute immediate q'[create or replace TYPE JSON FORCE AUTHID CURRENT_USER AS OBJECT(
8+
dummyobjt NUMBER
9+
) NOT FINAL NOT INSTANTIABLE;]';
10+
$else
11+
dbms_output.put_line('Installing json structures specs for native json.');
712
execute immediate q'[create or replace TYPE JSON FORCE AUTHID CURRENT_USER AS OBJECT(
813
dummyobjt NUMBER
914
) NOT FINAL NOT INSTANTIABLE;]';
10-
$else
15+
1116
dbms_output.put_line('Installing json structures specs.');
1217
execute immediate q'[create or replace TYPE JSON_Element_T FORCE AUTHID CURRENT_USER AS OBJECT(
1318
dummyobjt NUMBER,

0 commit comments

Comments
 (0)