[MDEV-17716] multi-UPDATE with and without prepared satements accept different syntax Created: 2018-11-14 Updated: 2022-11-07 Resolved: 2022-11-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.0 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleksandr Byelkin | Assignee: | Oleksandr Byelkin |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Description |
|
above will be error with prepared statements due to check at the end of multi_update_precheck() |
| Comments |
| Comment by Oleksandr Byelkin [ 2018-11-14 ] | ||
|
5.5, 10.1 and up have to be checked | ||
| Comment by Oleksandr Byelkin [ 2018-11-14 ] | ||
|
9aa459f0df7e000224e4ac54c5009eac42ef365a | ||
| Comment by Oleksandr Byelkin [ 2018-11-14 ] | ||
|
Usual UPDATE accept ORDER BY/LIMIT and multi-UPDATE does not, with multi-table view in usual execution and prepare it checked by usual UPDATE rules and on execute by rules of multi-UPDATE (which it is actually is). | ||
| Comment by Elena Stepanova [ 2022-10-08 ] | ||
|
The error until 10.3 was
10.3+ isn't affected, although I didn't search for the change which fixed it. |