Fix · Supabase and databases
Update or delete says success but nothing changed
What you may see
- My save button works with no error but the data stays the same
Most likely cause
Row level security or the filter matches no rows, and the database reports success for "0 rows changed".
Check first (about two minutes)
- Ask the update to return the changed rows: is the list empty?
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Make the update return the rows (select after update) and show me what comes back.
- Check the filter value (a wrong id or type) and then the UPDATE policy with its USING and WITH CHECK parts.
- Show the user a message when zero rows were changed.
Do not do this
- Do not assume success only because there was no error.
- Do not loosen the policy to every user.