vertical-blank / sql-formatter

SQL formatter written with only Java Standard Library, without dependencies.
MIT License
223 stars 46 forks source link

v2.0.0 String '||' issue #38

Closed tenie closed 3 years ago

tenie commented 3 years ago
select '123' || 'abc' from table1

after

select
    '123' | | 'abc'
from
    table1

extra space between the ||

vertical-blank commented 3 years ago

Thank you for reporting, I'll fix it.

As a workaround, use MySql dialect or write like below.

SqlFormatter.extend(cfg -> cfg.plusOperators("||"))