[MDEV-30342] Wrong "Truncated incorrect DECIMAL value" warning/error in recent releases Created: 2023-01-04 Updated: 2023-02-23 Resolved: 2023-01-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert |
| Affects Version/s: | 10.3.37, 10.4.27, 10.5.18, 10.6.10, 10.7.7, 10.8.6, 10.9.4, 10.10.2, 10.11.1 |
| Fix Version/s: | 10.11.2, 11.0.1, 10.3.38, 10.4.28, 10.5.19, 10.6.12, 10.7.8, 10.8.7, 10.9.5, 10.10.3 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Hartmut Holzgraefe | Assignee: | Daniel Black |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Issue Links: |
|
||||||||
| Description |
|
The below worked fine so far, as expected, but starts to throw unexpected
in most recent releases. I looked over the 10.3.37 (lowest version release I can reproduce this on) release notes and changelog page, but could not find any change that seemed to be related to this change in behavior ...
|
| Comments |
| Comment by Sergei Golubchik [ 2023-01-07 ] | |||
|
caused by https://github.com/MariaDB/server/commit/8c389393695 | |||
| Comment by Daniel Black [ 2023-01-07 ] | |||
|
For review: https://github.com/MariaDB/server/pull/2422 | |||
| Comment by Daniel Black [ 2023-01-07 ] | |||
|
While definitely a regression, isn't the current behaviour correct in emitting an error on the if function returning two different types? So is this actually a bug? Taking a CREATE TABLE .. SELECT case
This produces the same error even before | |||
| Comment by Sergei Golubchik [ 2023-01-08 ] | |||
|
No, the current behavior is wrong. There are few considerations here:
This should be eventually solved in MDEV-19362 (see also the discussion in comments). For now let's just fix the regression and restore the old behavior. |