You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ServicePlanLegId in the scenario can be null. When we upsert, it will create new rows in the DB, even though both ServicePlanLegId are null and TransportPlanId is the same,.
Hey @rsr-maersk - I believe this is related to how databases handle nulls.. At least in MS SQL Server, two columns that are both null are not considered equal, so when trying to find a match when your values are null will end up with this kind of behavior.
I'd recommend changing your unique constraint or the columns to not include values. In theory the query could be updated to use something like COALESCE or ISNULL, but these come with their own caveats, and assumptions
Hi. Thanks for the great lib.
ServicePlanLegId in the scenario can be null. When we upsert, it will create new rows in the DB, even though both ServicePlanLegId are null and TransportPlanId is the same,.
Shouldn't the lib be able to handle null, it seams to be inserting each time
The text was updated successfully, but these errors were encountered: