Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

correct syntax in json_transform is flagged as error

Robbie DatabeeJun 14 2024

The extension flags correct syntax of SQL function json_transform() as error.

This is related to a bug in the documentation, I just reported.

prompt order of returning and passing follows documentation 
prompt is not flagged but gives error ORA-00907: missing right parenthesis 
select json_transform(json('[{id:1,b:"hello"},{id:2,b:"hello"}]') 
, remove '$[*]?(@.id == $id)' 
returning json 
passing 2 as "id" 
) as doc_but_wrong; 

prompt this order is working 
select json_transform(json('[{id:1,b:"hello"},{id:2,b:"hello"}]') 
, remove '$[*]?(@.id == $id)' 
passing 2 as "id" -- this is not an error 
returning json) as working; 
This post has been answered by thatJeffSmith-Oracle on Jun 14 2024
Jump to Answer
Comments
Post Details
Added on Jun 14 2024
2 comments
107 views