[MDEV-5962] EITS: value "position" calculated incorrectly for CHAR(n) columns Created: 2014-03-27 Updated: 2014-03-27 Resolved: 2014-03-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.9 |
| Fix Version/s: | 10.0.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | eits | ||
| Description |
|
Let's see how histograms work for CHAR
Now, put a breakpoint in Field::pos_in_interval_val_str and run:
Let's see
So, mp < minp < maxp . This is expected. Now , run this line
and
We use unsigned substraction, and end up with the wrong value_position number. The return value of Field::pos_in_interval_val_str() is 1 although it should have been 0. |