SELECT JSON_VALUE('{a:100}', '$.a' RETURNING NUMBER) AS value
FROM DUAL;
SELECT JSON_VALUE('{a:100}', '$.a' RETURNING NUMBER ON ERROR) AS value
FROM DUAL;
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "("
at line 1, column 18.
Was expecting one of:
"&"
"::"
"<<"
">>"
"EXCEPT"
"INTERSECT"
"INTO"
"MINUS"
"UNION"
"["
"^"
"|"
<EOF>
<ST_SEMICOLON>
Grammar or Syntax Description
JOSN_VALUEclause is not supported yetSQL Example
Simplified Query Example, focusing on the failing feature
Exception:
Additional context
The used JSQLParser Version: 4.7_SNAPSHOT.
Oracle DB 12c
Links to the reference documentation: https://docs.oracle.com/en/database/oracle/oracle-database/12.2/sqlrf/JSON_VALUE.html#GUID-C7F19D36-1E75-4CB2-AE67-ADFBAD23CBC2