Closed
Description
Search before asking
- I searched the issues and found no similar issues.
What Happened
T-sql has specific syntax for their JSON_ARRAY and JSON_OBJECT functions.
- https://learn.microsoft.com/en-us/sql/t-sql/functions/json-array-transact-sql
- https://learn.microsoft.com/en-us/sql/t-sql/functions/json-object-transact-sql
These both throw errors unable to parse.
Expected Behaviour
I expect to be able to properly parse these function calls.
Observed Behaviour
Found unparsable section: "('a', 1, NULL, 2 NULL ON NULL);
Found unparsable section: "('name':'value', 'type':1);
How to reproduce
SELECT JSON_ARRAY('a', 1, NULL, 2 NULL ON NULL);
SELECT JSON_OBJECT('name':'value', 'type':1);
Dialect
tsql
Version
3.4.0
Configuration
Default with just dialect=tsql
Are you willing to work on and submit a PR to address the issue?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct