[MDEV-16692] INSERT ON DUPLICATE KEY UPDATE produces error 1032 (Can't find record) Created: 2018-07-05 Updated: 2020-07-13 Resolved: 2020-07-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert, Storage Engine - InnoDB |
| Affects Version/s: | 10.2.16, 10.3.7 |
| Fix Version/s: | 10.2.27, 10.3.18, 10.4.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Robert Humphries | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Tested on: |
||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
The linked bug ( Test Script:
|
| Comments |
| Comment by Alice Sherepa [ 2018-07-05 ] | |||||||||||||||||
|
Thanks for the report! reproducible on 10.2 (058554027f6696775), 10.3 (commit 1748a31ae8d69e4) | |||||||||||||||||
| Comment by Vilnis Termanis [ 2019-04-03 ] | |||||||||||||||||
|
Might this be a duplicate of | |||||||||||||||||
| Comment by Vilnis Termanis [ 2019-04-03 ] | |||||||||||||||||
|
@serg - I don't think this is fixed looking at the 10.4 branch in its current state (on GitHub) at commit https://github.com/MariaDB/server/tree/c8f8d5ceb7227ff825f86ea2d61dd1edd9e610b2 | |||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2019-05-14 ] | |||||||||||||||||
|
Tested with
All produced correct output:
| |||||||||||||||||
| Comment by Jan Lindström (Inactive) [ 2019-05-14 ] | |||||||||||||||||
|
However, the test case is for some reason lost starting from 10.2. Based on investigation merge commit 4771ae4b22d2bdef0aafc563570c71d4636a2493 removed it. (test case is e.g. in git show 60f51a). | |||||||||||||||||
| Comment by Marko Mäkelä [ 2020-07-13 ] | |||||||||||||||||
|
It is true that the test case that was added in the Apart from However, even with the parent commit of the MDEV-17614 after-merge fix the following test passes for me:
In MariaDB 10.2.17 and 10.2.18, the second INSERT would fail with ER_KEY_NOT_FOUND (1032) instead of ER_NO_REFERENCED_ROW_2 (1452). So, the In MariaDB 10.2.19, 10.2.20 and 10.2.26, the test passed. While we can say that any trace of Even with the
I think that it is correct to say that this bug was fixed by | |||||||||||||||||
| Comment by Marko Mäkelä [ 2020-07-13 ] | |||||||||||||||||
|
|