darold / pgFormatter

A PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI. On-line demo site at http://sqlformat.darold.net/
PostgreSQL License
1.66k stars 100 forks source link

Types are not formatted correctly. #322

Closed bbstilson closed 1 year ago

bbstilson commented 1 year ago

Input

ALTER TABLE foo ADD COLUMN bar INT;

Run

pg_format --keyword-case 1 --type-case 1 foo.sql

Output

alter table foo
    add column bar INT;

Expected

alter table foo
    add column bar int;
darold commented 1 year ago

Commit cc74d8e might fix this issue.

bbstilson commented 1 year ago

Awesome thank you @darold. Any chance for a release with this fix?