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

INSERT INTO #418

Open
metov opened this issue May 7, 2023 · 2 comments
Open

INSERT INTO #418

metov opened this issue May 7, 2023 · 2 comments
Labels
DDL-DML enhancement New feature or request

Comments

@metov
Copy link

metov commented May 7, 2023

Describe the bug
For some statements, casing is not corrected. I have an example with INSERT INTO, but maybe it's others too.

To Reproduce
Formatting this produces no changes:

insert INTO foo (bar) VAluES (123);

Expected behavior
Casing should be normalized to what https://docs.sqlfmt.com/style says.

Actual behavior
Bad casing left as is.

Additional context
What is the output of sqlfmt --version?

sqlfmt, version 0.18.0

@metov
Copy link
Author

metov commented May 7, 2023

Also:

$ echo "insert INTO foo (bar) VAluES (123);" | sqlfmt - --check
1 file passed formatting check.

@tconbeer
Copy link
Owner

tconbeer commented May 7, 2023

See #262

PRs welcome

@tconbeer tconbeer added enhancement New feature or request DDL-DML labels May 7, 2023
@tconbeer tconbeer changed the title INSERT INTO casing not normalized INSERT INTO May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DDL-DML enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants