Skip to content

Upsert in Postgres not updating any fields #4305

Closed Answered by jblachly
jblachly asked this question in Q&A
Discussion options

You must be logged in to vote

Asked and Answered:

Needing to specify ALL fields after a conflict is a postgres limitation; diesel supports using an AsChangeset struct in the .set ala:

.do_update().set(&cache_row)...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jblachly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant