sql-formatter
sql-formatter copied to clipboard
[FORMATTING] grant formatting issues
Input data
Which SQL and options did you provide as input?
grant select on t to r;
grant select, insert, update, delete on t to r;
Expected Output
grant select on t to r;
grant select, insert, update, delete on t to r;
Actual Output
grant
select
on t to r;
grant
select
,
insert,
update,
delete on t to r;
Usage
- How are you calling / using the library?
npx sql-formatter -l postgresql file.sql - What SQL language(s) does this apply to?
postgres - Which SQL Formatter version are you using?
12.2.0
Thanks for reporting.
Unfortunately this is another issue that's unlikely to get fixed with the current formatter architecture.