Skip to content

Conversation

@schauder
Copy link
Contributor

When an update results in 0 updated rows we now ignore it, instead of throwing an exception.

The reason is that at least some databases return 0 when a row for updating was found, but none of the values changed.

Closes #2176

When an update results in 0 updated rows we now ignore it, instead of throwing an exception.

The reason is that at least some databases return 0 when a row for updating was found, but none of the values changed.

Closes #2176
@schauder schauder requested a review from mp911de November 21, 2025 13:40
@schauder schauder added has: breaking-change An issue that is associated with a breaking change. type: enhancement A general enhancement labels Nov 21, 2025
@mp911de mp911de changed the title Ignore update count without version. Ignore update count without version Nov 25, 2025
@mp911de mp911de changed the title Ignore update count without version Do not throw IncorrectUpdateSemanticsDataAccessException on zero updated rows Nov 25, 2025
@mp911de mp911de added this to the 3.5.7 (2025.0.7) milestone Nov 25, 2025
mp911de pushed a commit that referenced this pull request Nov 25, 2025
…dated rows.

When an update results in 0 updated rows (without optimistic locking) we now ignore it, instead of throwing an exception.

The reason is that at least some databases return 0 when a row for updating was found, but none of the values changed.

Closes #2176
Original pull request: #2185
mp911de added a commit that referenced this pull request Nov 25, 2025
No longer throw TransientDataAccessResourceException if R2DBC update does not yield any updated rows.

Remove mentions of IncorrectUpdateSemanticsDataAccessException, add mention of OptimisticLockingFailureException to affected methods.

Consistent OptimisticLockingFailureException exception message.

See #2176
Original pull request: #2185
mp911de pushed a commit that referenced this pull request Nov 25, 2025
…dated rows.

When an update results in 0 updated rows (without optimistic locking) we now ignore it, instead of throwing an exception.

The reason is that at least some databases return 0 when a row for updating was found, but none of the values changed.

Closes #2176
Original pull request: #2185
mp911de added a commit that referenced this pull request Nov 25, 2025
No longer throw TransientDataAccessResourceException if R2DBC update does not yield any updated rows.

Remove mentions of IncorrectUpdateSemanticsDataAccessException, add mention of OptimisticLockingFailureException to affected methods.

Consistent OptimisticLockingFailureException exception message.

See #2176
Original pull request: #2185
mp911de pushed a commit that referenced this pull request Nov 25, 2025
…dated rows.

When an update results in 0 updated rows (without optimistic locking) we now ignore it, instead of throwing an exception.

The reason is that at least some databases return 0 when a row for updating was found, but none of the values changed.

Closes #2176
Original pull request: #2185
mp911de added a commit that referenced this pull request Nov 25, 2025
No longer throw TransientDataAccessResourceException if R2DBC update does not yield any updated rows.

Remove mentions of IncorrectUpdateSemanticsDataAccessException, add mention of OptimisticLockingFailureException to affected methods.

Consistent OptimisticLockingFailureException exception message.

See #2176
Original pull request: #2185
@mp911de mp911de self-assigned this Nov 25, 2025
@mp911de mp911de closed this Nov 25, 2025
@mp911de mp911de deleted the issue/2176-ignore-update-count branch November 25, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has: breaking-change An issue that is associated with a breaking change. type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IncorrectUpdateSemanticsDataAccessException when saving an unchanged entity

3 participants