[MDEV-10125] Altering decimal column on a TokuDB table can corrupt data Created: 2016-05-25 Updated: 2018-01-01 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - TokuDB |
| Affects Version/s: | 10.1.14 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jeff | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Environment: |
centos 7 |
||
| Description |
|
When changing a decimal column's scale but not precision on a tokudb column (and keeping everything else the same) the column's data can be corrupted. NB Changing NULL/NOT NULL, SIGNED/UNSIGNED or decimal precision will all result in things working properly. Here's a test case that can reproduce the problem:
|
| Comments |
| Comment by Elena Stepanova [ 2016-05-27 ] | ||||||||||||||||||||||||||||||||||||
|
Same happens with Percona server (tried 5.6.29):
jeffscott2, | ||||||||||||||||||||||||||||||||||||
| Comment by Jeff [ 2016-06-07 ] | ||||||||||||||||||||||||||||||||||||
|
I found a similar bug report at percona which is currently Triaged |