Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] missing JSON_VALUE function for Oracle #1825

Open
ZhengguanLi opened this issue Jul 11, 2023 · 1 comment
Open

[FEATURE] missing JSON_VALUE function for Oracle #1825

ZhengguanLi opened this issue Jul 11, 2023 · 1 comment

Comments

@ZhengguanLi
Copy link

Grammar or Syntax Description

  • JOSN_VALUE clause is not supported yet

SQL Example

  • Simplified Query Example, focusing on the failing feature

    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;

    Exception:

    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>
    

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants