• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sql-formatter-org / sql-formatter / 28425584054
96%

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2026 06:44AM UTC
Jobs 1
Files 88
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2026 06:43AM UTC coverage: 95.611% (+0.009%) from 95.602%
28425584054

push

github

web-flow
fix(postgresql): keep spaces around OPERATOR() with denseOperators (#958)

I was trying out `denseOperators` on some Postgres queries and noticed
it mangles the `OPERATOR(schema.op)` syntax:

```
format('SELECT foo OPERATOR(public.===) bar;', { language: 'postgresql', denseOperators: true })
// =>
// SELECT
//   fooOPERATOR(public.===)bar;
```

The spaces around the operator get stripped, so `foo` runs into the
`OPERATOR` keyword and the result no longer parses. Unlike `+`/`=`/etc.,
this one is keyword-like and can't be glued to its operands, so I made
it keep its surrounding spaces even in dense mode — same idea as the
existing `-` exception for dialects with dashed identifiers.

Added a test under the existing OPERATOR() case in postgresql.test.ts.

593 of 663 branches covered (89.44%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

1324 of 1342 relevant lines covered (98.66%)

16463.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28425584054.1 30 Jun 2026 06:44AM UTC 88
95.61
GitHub Action Run
Source Files on build 28425584054
  • Tree
  • List 88
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b2ce5459 on github
  • Prev Build on master (#28383725773)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc