Closed tuckerrc closed 2 months ago
Had no idea that was a thing. Thanks for the report!
@tuckerrc this has been patched in v0.21.3
Thank you for the quick turnaround! I discovered it yesterday when sqlfmt broke a query in a large project. Now I don't need to change that query!
Describe the bug
PostgreSQL has a few aliases for the
LIKE
keyword (9.7.1. LIKE). sqlfmt adds a space between the~~
operator, breaking the query.Other operators specific to PostgreSQL (from the docs)
To Reproduce Steps to reproduce the behavior. If this is a formatting issue, include the input code here.
Input
sqlfmt output
Expected behavior
No spaces are added to the
~~
operatorAdditional context What is the output of
sqlfmt --version
?