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

support for mssql json_object syntax #1506

Closed
lovasoa opened this issue Nov 8, 2024 · 2 comments
Closed

support for mssql json_object syntax #1506

lovasoa opened this issue Nov 8, 2024 · 2 comments

Comments

@lovasoa
Copy link
Contributor

lovasoa commented Nov 8, 2024

SQL server has a json_object function with a special syntax that uses colons instead of commas between json keys and values.

SELECT JSON_OBJECT('name':'value', 'type':1)

This is not yet supported in sqlparser. This would be useful in SQLPage where we use json for advanced features.

Reference: https://learn.microsoft.com/en-us/sql/t-sql/functions/json-object-transact-sql?view=sql-server-ver16

@gaoqiangz this may be of interest to you :)

@gaoqiangz
Copy link
Contributor

👌

@lovasoa
Copy link
Contributor Author

lovasoa commented Nov 24, 2024

Fixed by @gaoqiangz . Thank you !

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

No branches or pull requests

2 participants