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

format a GRANT statement #460

Closed
mojoaxel opened this issue Nov 20, 2019 · 1 comment
Closed

format a GRANT statement #460

mojoaxel opened this issue Nov 20, 2019 · 1 comment
Labels
formatting good first issue Easy issue for beginners to start contributing to the project
Milestone

Comments

@mojoaxel
Copy link
Contributor

The indentation of the most keywords is wrong inside a GRANT statement.

Steps to reproduce

sqlFormatter.format(
"GRANT ALTER, CREATE, DELETE, EXECUTE, INSERT, SELECT, REFERENCES, TRIGGER, UPDATE ON *.* TO 'user' @'%';"
)

Expected Result

GRANT ALTER,
  CREATE,
  DELETE,
  EXECUTE,
  INSERT,
  SELECT,
  REFERENCES,
  TRIGGER,
UPDATE ON *.* TO 'user' @'%';

Actual Result

GRANT ALTER,
CREATE,
DELETE,
EXECUTE,
INSERT,
SELECT,
  REFERENCES,
  TRIGGER,
UPDATE ON *.* TO 'user' @'%';
@mtxr mtxr transferred this issue from mtxr/sqltools-formatter Dec 11, 2019
@mtxr mtxr added the formatting label Feb 7, 2020
@triage-new-issues triage-new-issues bot removed the triage label Feb 7, 2020
@mtxr mtxr added the good first issue Easy issue for beginners to start contributing to the project label Feb 7, 2020
@mtxr mtxr added this to the v0.22 milestone May 11, 2020
@mtxr mtxr closed this as completed in 7475ec2 Jun 5, 2020
@mojoaxel
Copy link
Contributor Author

mojoaxel commented Jun 6, 2020

🎉 Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatting good first issue Easy issue for beginners to start contributing to the project
Projects
None yet
Development

No branches or pull requests

2 participants