[MDEV-28608] Subquery gives wrong results in ON DUPLICATE KEY UPDATE ... part of INSERT Created: 2022-05-18 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert, Data Manipulation - Subquery, Data Manipulation - Update |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Janez Resnik | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
In case of multi-row update like this INSERT ... SELECT ... ON DUPLICATE KEY UPDATE b=(select ... ) all rows get last subquery result This bug has been reported upstream, see https://bugs.mysql.com/107325 Tested mariadb versions (with issue):
Tested mysql versions (with issue):
|
| Comments |
| Comment by Alice Sherepa [ 2022-06-03 ] | ||||||||||||||||||||||||||||||
|
Thank you!
|