[MDEV-31093] "ON DUPLICATE KEY UPDATE" saves wrong data to the database Created: 2023-04-20 Updated: 2023-04-20 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.6.12 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Juanmi Taboada | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
10.6.12-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04 |
||
| Attachments: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Hello: While developing a new version of our software, I found some issues during tests and couldn't figure out why. I think this data produce a COLLISION when using the HASH engine for our INDEX. I can reproduce this bug with the next code:
The result we get after executing this is:
I think the expected behaviour from the database should be:
Thank you |
| Comments |
| Comment by Marko Mäkelä [ 2023-04-20 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Before | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juanmi Taboada [ 2023-04-20 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
I don't have this problem when using BTREE. I switched to BTREE to avoid this bug until resolved. | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2023-04-20 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Could you please add you .cnf file? I tried to repeat on 10.6.12 and it worked as expected:
| ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Juanmi Taboada [ 2023-04-20 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
So far I can reproduce this bug in:
Configurations attached. |