[MDEV-8489] Multi-UPDATE does not report truncated fields correctly Created: 2015-07-17 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This script:
correctly reports 1 warning:
Looks correct so far. Now I change the script slightly, to use a multi-UPDATE statement:
it reports no warnings:
A related problem:
The above script returns:
The multi-table UPDATE incorrectly says "Warnings: 3" , that is it counted the truncations that happened inside SP. It should only count the number of truncations that happened in fields, which is 0. |
| Comments |
| Comment by Alexander Barkov [ 2015-07-17 ] | |||
|
The proposed plan is:
|