Open cmh716 opened 2 months ago
Describe the bug JSON_OBJECT, JSON_ARRAY, JSON_ARRAGG, etc do not work with this plugin
Expected behavior I expect these statements to be formatted
Actual behavior The plugin returns a parse error
Usage You can reproduce the issue on IBMi systems db2i:
SELECT JSON_OBJECT('key':'val') FROM SYSIBM.SYSDUMMY1;
To return complex JSON objects from DB2i, it's not uncommon to have a lot of JSON_OBJECTS and ARRAY, ARRAYAGG nested.
Thanks for reporting.
I can confirm that the issue does reproduce, giving an error:
Parse error: Unexpected ":'val') FR" at line 1 column 25. SQL dialect used: "db2i".
Describe the bug JSON_OBJECT, JSON_ARRAY, JSON_ARRAGG, etc do not work with this plugin
Expected behavior I expect these statements to be formatted
Actual behavior The plugin returns a parse error
Usage You can reproduce the issue on IBMi systems db2i:
SELECT JSON_OBJECT('key':'val') FROM SYSIBM.SYSDUMMY1;
To return complex JSON objects from DB2i, it's not uncommon to have a lot of JSON_OBJECTS and ARRAY, ARRAYAGG nested.