Skip to content

fix(postgrest): stop setting Upsert on the caller's options - #522

Merged
Tr00d merged 1 commit into
supabase:masterfrom
fresh55:fix/postgrest-upsert-options
Oct 21, 2026
Merged

Tr00d merged 1 commit into
supabase:masterfrom
fresh55:fix/postgrest-upsert-options

Conversation

@fresh55

@fresh55 fresh55 commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Table.Upsert set options.Upsert = true on the caller's QueryOptions. If you use the same options object again, a later Insert becomes an upsert and overwrites (or skips) the existing row instead of failing on a duplicate key. Upsert now sets the flag on a copy. Same kind of bug as #521.

Table.Upsert set options.Upsert = true on the caller's QueryOptions, so
a reused options object turned a later Insert into an upsert.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants