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
If I'd insert one row and then try to insert exactly same row again I'd generally expect returned result to be empty on second insertion, however that is not the case because every time everything is returned regardless of whether row was updated or not.
On the other hand op.RowsAffected logs correct value always (1 and 0 in above mentioned example).
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered:
@bedakb Yes, Even I got into this bug. Are you able to solve with any workaround for this?
Can we change the label of this issue to a bug instead of question?
Your Question
Hello!
Is there a way to get only modified rows back as result of Upsert query together with RETURNING clause and WHERE condition? Consider this example:
If I'd insert one row and then try to insert exactly same row again I'd generally expect returned result to be empty on second insertion, however that is not the case because every time everything is returned regardless of whether row was updated or not.
On the other hand
op.RowsAffected
logs correct value always (1
and0
in above mentioned example).The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered: