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

supabase / mcp / 45779103014
98%

Build:
DEFAULT BRANCH: main
Ran 26 Nov 2026 07:59AM UTC
Jobs 1
Files 50
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

26 Nov 2026 07:56AM UTC coverage: 98.402% (+0.01%) from 98.389%
45779103014

push

github

web-flow
fix(mcp): confirm UPDATEs without WHERE that follow a comment and set a dollar-quoted value (#612)

## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

Fixes #611

`splitStatements()` keeps `--`, `/*`, and `*/` markers in `blanked`
until callers strip them (#524), so
`valueDollarQuoteStatement.test(blanked)`
(`/^\s*(?:update\s|explain(?![\w$\u0080-\uffff]))/i`) fails whenever a
comment precedes `UPDATE`/`EXPLAIN` or sits directly after `UPDATE`
(`UPDATE/* reset */films`). Leaving dollar-quoted values unmasked causes
`execute_sql`, `apply_migration`, and `run_notebook` (both confirmation
and destructive label) to:

- run comment-prefixed `UPDATE`s without `WHERE` unprompted when a
dollar-quoted value contains `where`, and
- prompt on comment-prefixed `UPDATE ... WHERE` and read-only `EXPLAIN`
/ `EXPLAIN ANALYZE` statements when a dollar-quoted value contains `;`.

Calling `valueDollarQuoteStatement.test(blanked)` on every dollar-quoted
span also repeatedly flattens V8's `+=` rope (`O(N²)` on statements with
many `$$...$$` values).

## What is the new behavior?

`splitStatements()` emits `' '` for `line-comment` and `block-comment`
spans — matching `maskDataLiterals()` in `sql-data-literals.ts` and
taking the alternative raised in #524's review question — and caches
`valueStatement` per statement (resetting on every `;`).
`stripCommentMarkers()` remains for unmasked dollar bodies and the
unterminated fallback.

| Query | `d670445` | This branch |
| --- | --- | --- |
| `/* reset */ UPDATE films SET bio = $$ where 1=1 $$;` | runs | asks |
| `-- reset`<br>`UPDATE films SET bio = $$ where 1=1 $$;` | runs | asks
|
| `UPDATE/* reset */films SET bio = $$ where 1=1 $$;` | runs | asks |
| `/* reset */ UPDATE films SET bio = $$a; b$$ WHERE id = 1;` | asks |
runs |
| `/* plan */ EXPLAIN SELECT $$ ; UPDATE films SET id = 2 $$;` | asks |
runs |
| `/* plan */ EXPLAIN (ANALYZE) UPDATE films SET bio = $$a; b$$ WHERE id
= 1;` | ask... (continued)

1429 of 1479 branches covered (96.62%)

Branch coverage included in aggregate %.

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

6638 of 6719 relevant lines covered (98.79%)

2334.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45779103014.1 26 Nov 2026 07:59AM UTC 50
98.4
GitHub Action Run
Source Files on build 45779103014
  • Tree
  • List 50
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45779103014
  • 468907af on github
  • Prev Build on main (#45652783304)
  • Next Build on main (#45783364961)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc