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

ON UPDATE with two many blank formatted incorrectly #45

Closed
wugeer opened this issue Sep 5, 2024 · 0 comments · Fixed by #46
Closed

ON UPDATE with two many blank formatted incorrectly #45

wugeer opened this issue Sep 5, 2024 · 0 comments · Fixed by #46

Comments

@wugeer
Copy link
Contributor

wugeer commented Sep 5, 2024

input sql:

CREATE TABLE a (b integer REFERENCES c (id) ON                                                     UPDATE RESTRICT, other integer);

output sql

CREATE TABLE a (
  b integer REFERENCES c (id) ON
  UPDATE
    RESTRICT,
    other integer
);

Would be better as:

CREATE TABLE a (
  b integer REFERENCES c (id) ON UPDATE RESTRICT,
  other integer
);
@wugeer wugeer changed the title plain reserved two token formatted incorrectly ON UPDATE with two many blank formatted incorrectly Sep 5, 2024
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

Successfully merging a pull request may close this issue.

1 participant