Skip to content
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

test that shows getRowsUpdated returns 0 in upsert #290

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sebastian-alfers
Copy link

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 ...

Signed-off-by: Sebastian <sebastian.alfers@gmail.com>
@sebastian-alfers
Copy link
Author

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 sebastian-alfers changed the title test that shows getRowsUpdated is empty in upsert test that shows getRowsUpdated returns 0 in upsert Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant