tconbeer / sqlfmt

sqlfmt formats your dbt SQL files so you don't have to
https://sqlfmt.com
Apache License 2.0
405 stars 17 forks source link

INSERT INTO #418

Open metov opened 1 year ago

metov commented 1 year ago

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 commented 1 year ago

Also:

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

See https://github.com/tconbeer/sqlfmt/issues/262

PRs welcome