-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upsert failing on non-null column, even though value exists in db #515
Comments
I'm seeing very broken behavior with upsert, possibly related. I have a trigger that checks if the incoming |
I am seeing several issues with upsert as well. Is there a timeline on fixing this? There is no other good method for performing bulk row updates. It's concerning that this issue has remained open this long. |
Having weird behavior on upsert as well (using python client):
|
@pwc-mw If the column has a default, there's a await supabase
.from('test_table')
.upsert([
{ data: "here"},
{ data: "here"},
{ data: "here"}
], {
defaultToNull: false
}) See the options "details" on https://supabase.com/docs/reference/javascript/upsert
|
Bug report
Describe the bug
I want to bulk
update
, but must useupsert
. I useupsert
but receive issues on non-null columns when they are not provided, despite the value existing on the record in the db.To Reproduce
Example table:
Updating a single row (via
upsert
): I know the record exists and thename
column is populated. However if I try toupsert
:I receive
Expected behavior
The row show be "merged", thus it should just update the two columns I provided, and not default the
name
column to null, which in this case is not allowed."@supabase/supabase-js": "^2.39.2",
The text was updated successfully, but these errors were encountered: