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

[BUG] JSQLParser 4.6 : MySQL : JSON_OBJECTAGG fails with table prefixes #1753

Open
tomershay opened this issue Mar 22, 2023 · 3 comments
Open
Assignees
Labels

Comments

@tomershay
Copy link
Contributor

tomershay commented Mar 22, 2023

The following query parses ok:
SELECT JSON_OBJECTAGG( KEY foo VALUE bar) FROM dual

But this one doesn't (only change is adding prefixes to column names:
SELECT JSON_OBJECTAGG( KEY q.foo VALUE q.bar) FROM dual

Also, this alternative is valid but fail parsing:
SELECT JSON_OBJECTAGG(foo, bar) FROM dual

@manticore-projects
Copy link
Contributor

Greetings!

Thanks for reporting, I will look into it.

@manticore-projects
Copy link
Contributor

@manticore-projects
Copy link
Contributor

At least in Oracle, this seem to have changed only recently: https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf/JSON_OBJECTAGG.html

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

No branches or pull requests

2 participants