You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use the JSON_OBJECT() function from the SQL standard (implemented in PostgreSQL 16), the formatter removes/does not insert a space between the : delimiting the key and value, which makes the SQL somewhat hard to read.
This may not seem that big of a deal for a simple example like this, but when the value is a more complicated expression with nested objects etc it becomes much worse.
Usage
How are you calling / using the library? Prettier
What SQL language(s) does this apply to? PostgreSQL but presumably all DBs that support JSON_OBJECT()
Which SQL Formatter version are you using? 15.0.2
The text was updated successfully, but these errors were encountered:
When you use the
JSON_OBJECT()
function from the SQL standard (implemented in PostgreSQL 16), the formatter removes/does not insert a space between the:
delimiting the key and value, which makes the SQL somewhat hard to read.Input data
Which SQL and options did you provide as input?
Expected Output
Actual Output
This may not seem that big of a deal for a simple example like this, but when the value is a more complicated expression with nested objects etc it becomes much worse.
Usage
JSON_OBJECT()
The text was updated successfully, but these errors were encountered: