Skip to content

Conversation

@sbutlerjr
Copy link
Contributor

What kind of change does this PR introduce?

Resolves: #1227

Prior bug omitted passing onConflict through to on_conflict if the value data was a list.

What is the current behavior?

on_conflict was omitted from the REST URL if the data was a list

What is the new behavior?

Works correctly with POSTGrest on_conflict docs and passes the columns and on_conflict properties in the URL.

@grdsdev grdsdev changed the title Fix URL replacement logic in query builder fix(postgrest): URL replacement logic in query builder Sep 22, 2025
@grdsdev
Copy link
Contributor

grdsdev commented Sep 22, 2025

Hi @sbutlerjr thanks for opening this fix, can you also include a unit test for asserting this behavior?

@coveralls
Copy link

coveralls commented Sep 22, 2025

Pull Request Test Coverage Report for Build 18090604237

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 80.511%

Totals Coverage Status
Change from base Build 17918038339: 0.03%
Covered Lines: 3119
Relevant Lines: 3874

💛 - Coveralls

@sbutlerjr
Copy link
Contributor Author

Hi @grdsdev Tests added

@grdsdev grdsdev merged commit 908976c into supabase:main Sep 29, 2025
15 checks passed
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.

upsert fails to pass onConflict into the on_conflict in postgREST

3 participants