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

supabase / supabase-py / 41676184517 / 8
98%
main: 98%

Build:
DEFAULT BRANCH: main
Ran 03 Nov 2026 04:40PM UTC
Files 68
Run time 1s
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

03 Nov 2026 04:37PM UTC coverage: 98.831%. Remained the same
41676184517.8

push

github

web-flow
fix(postgrest): escape quotes and backslashes in bulk column names (#1948)

## Why

Closes #1944. Alternative to #1947.

Bulk inserts and upserts send the row keys in the `columns` query
parameter, wrapped in double quotes but not escaped. A column name
containing `"` or `\` is then parsed as a different name by PostgREST,
which responds with `PGRST204`.

## What changed

- Extract the existing quote and escape logic from `sanitize_param` and
`sanitize_array_element` into a single `quote` helper in `utils.py`.
- Use `quote` in `_unique_columns`, so bulk column names get the same
escaping as filter values and array elements.
- Plain and comma-containing names keep their current wire format
(`"plain"`, `"a,b"`).

## Tests

- `test_quote` unit tests the helper directly.
- `test_bulk_write_columns` (async and generated sync) gains cases for
names containing a comma, a double quote, a backslash, and both.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved handling of column names and values containing commas,
quotation marks, or backslashes when requests are built. These
characters are now quoted and escaped consistently, reducing malformed
requests in bulk writes and parameter values across synchronous and
asynchronous operations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

6597 of 6675 relevant lines covered (98.83%)

0.99 hits per line

Source Files on job run-ubuntu-latest-3.12-auth - 41676184517.8
  • Tree
  • List 68
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 41676184517
  • 7bebdeb4 on github
  • Prev Job for on main (#41675489278.8)
  • Next Job for on main (#41677529160.25)
  • 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