PabloRMira / sql_formatter

A Python based SQL formatter

Home Page:https://pablormira.github.io/sql_formatter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Formatter does not add space after comma

PabloRMira opened this issue · comments

Describe the bug

The formatter does not add a whitespace after comma if the user forgets it. I.e., the following query

select asdf, substr(asdf,1,2) as qwerty
from table1

gets formatted as

SELECT asdf, 
       substr(asdf,1,2) as qwerty
FROM table1

Expected:

SELECT asdf, 
       substr(asdf, 1, 2) as qwerty
FROM table1