Supabase · api · fg-0207

Supabase update returns no error but changes nothing because the table has no SELECT policy

If you see update() resolves with error null and status 204 while the row is unchanged, the cause and the fix for Supabase are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
update() resolves with error null and status 204 while the row is unchangedupdate().select() returns an empty arrayAn UPDATE policy exists and looks correct
Cause
Postgres must be able to see a row before it can update it, so UPDATE under RLS also needs a matching SELECT policy. Rows hidden from SELECT are skipped silently.
Fix
Add a SELECT policy covering the same rows as the UPDATE policy, and chain .select() in tests so a zero-row update is visible.
Apply
create policy "select own" on public.profiles for select to authenticated using ((select auth.uid()) = id); create policy "update own" on public.profiles for update to authenticated using ((select auth.uid()) = id) with check ((select auth.uid()) = id);
Affected
All Supabase projects with RLS enabled; any client library
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun