r2dbc-mssql icon indicating copy to clipboard operation
r2dbc-mssql copied to clipboard

test that shows `getRowsUpdated` returns 0 in upsert

Open sebastian-alfers opened this issue 2 years ago • 1 comments

Not really a fix, but a test that shows that getRowsUpdated does not return 1 for an inserted row in an upsert query.

An upsert is basically update ... if @@ROWCOUNT = 0 insert ...

sebastian-alfers avatar Jan 30 '24 16:01 sebastian-alfers

I tried to fix it, but did not really come to a point beside writing a reproducer as a test - which is why I created this draft pr instead of making an issue. Should I do the latter as well?

sebastian-alfers avatar Jan 30 '24 16:01 sebastian-alfers