[MDEV-9705] Field type conversion warnings have changed to worse Created: 2016-03-10 Updated: 2018-06-13 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
351026ca535179abb956c5ad1e1d59aac0835254 |
||
| Description |
|
The following SQL fragment converts CHAR field to INT:
It used to produce warnings like this:
Now on 10.2 it produces warnings like this:
It changed with this commit:
Old warnings look more meaningful, as they show the row number and column name, not just the value; I wonder if it's possible not to lose them. Note: while reproducing, take into account |
| Comments |
| Comment by Alexander Barkov [ 2016-03-11 ] | ||||||||||||||||||
|
The change was made to fix this problem: | ||||||||||||||||||
| Comment by Elena Stepanova [ 2016-06-19 ] | ||||||||||||||||||
|
Apparently, it wasn't the same problem, because the less-informative warnings are still there:
I have a bunch of storage_engine tests failing because of it, so I need to know whether it is going to be fixed or not (I hope it will be, but if not, I will change the result files). | ||||||||||||||||||
| Comment by Alexander Barkov [ 2016-06-20 ] | ||||||||||||||||||
|
A smaller script demonstrating the same problem:
| ||||||||||||||||||
| Comment by Alexander Barkov [ 2017-05-24 ] | ||||||||||||||||||
|
If I change INT to DECIMAL(10,1)
It returns these warnings in all current active versions (10.0, 10.1, 10.2, 10.3)
So apparently if we want more informative warnings, it should be implemented generally for all data type pairs. Fixing specificly CHAR-to-INT conversion back to its 10.0-style behavior does not look meaningful. |