vertical-blank/sql-formatter

@@ operator splitting in Postgres

kkarasev1 opened this issue · 2 comments

The @@ operator is used in PostgreSQL for text search
https://www.postgresql.org/docs/13/functions-textsearch.html
However, the formatter obtained by SqlFormatter.of(Dialect.PostgreSql) splits those two @ symbols with space, making a query using that operator invalid.

This looks to be the same issue as #38 but for different operator - the same workaround works

Fixed by #48