Commit 8c30022
Do not throw
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: #2185IncorrectUpdateSemanticsDataAccessException on zero updated rows.1 parent 120ead7 commit 8c30022
File tree
2 files changed
+3
-10
lines changed- spring-data-jdbc/src
- main/java/org/springframework/data/jdbc/core
- test/java/org/springframework/data/jdbc/core
2 files changed
+3
-10
lines changedLines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 337 | + | |
343 | 338 | | |
344 | 339 | | |
345 | 340 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
587 | | - | |
588 | | - | |
| 586 | + | |
589 | 587 | | |
590 | 588 | | |
591 | 589 | | |
| |||
1185 | 1183 | | |
1186 | 1184 | | |
1187 | 1185 | | |
1188 | | - | |
| 1186 | + | |
1189 | 1187 | | |
1190 | 1188 | | |
1191 | 1189 | | |
| |||
0 commit comments