[MDEV-21558] Bug or missing documentation in UPDATE-SET behaviour Created: 2020-01-23 Updated: 2020-05-18 Resolved: 2020-05-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update, Documentation |
| Affects Version/s: | 10.3.21, 10.4.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Thomas G. Jensen | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu |
||
| Description |
|
Documentation states: "Assignments are evaluated in left-to-right order, unless the SIMULTANEOUS_ASSIGNMENT sql_mode (available from MariaDB 10.3.5) is set, in which case the UPDATE statement evaluates all assignments simultaneously." But it seems like the "left-to-right" evaluation is not true for multiple-table-updates. So either this is a bug or the documentation lack this information. Example:
|
| Comments |
| Comment by Elena Stepanova [ 2020-03-07 ] |
|
It looks indeed like a documentation shortage. The MySQL manual has an explicit note about this:
I don't think that MariaDB has a different logic in this regard. |