Bug #117720 | Instant modification causes inconsistency in double data. | ||
---|---|---|---|
Submitted: | 17 Mar 2:39 | Modified: | 17 Mar 10:14 |
Reporter: | linus luo | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S2 (Serious) |
Version: | 8030, 8.0.41, 8.4.4 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | double, instant, modify column |
[17 Mar 2:39]
linus luo
[17 Mar 2:43]
linus luo
Fix How to repeat: create table t2(id int primary key, value double(12, 5)); insert into t2 values(1, 0.00265); -- 0.00265 select * from t2; alter table t2 modify column value double(12, 4), algorithm=instant; -- 0.0027 select * from t2; insert into t2 values(2, 0.00265); -- 0.0026 select * from t2 where id = 2;
[17 Mar 2:43]
linus luo
Fix How to repeat: create table t2(id int primary key, value double(12, 5)); insert into t2 values(1, 0.00265); -- 0.00265 select * from t2; alter table t2 modify column value double(12, 4), algorithm=instant; -- 0.0027 select * from t2; insert into t2 values(2, 0.00265); -- 0.0026 select * from t2 where id = 2;
[17 Mar 6:39]
MySQL Verification Team
Hello linus luo, Thank you for the report and feedback. regards. Umesh
[17 Mar 10:12]
linus luo
Is there a fixed version available later?
[17 Mar 10:14]
linus luo
how to fix it concretely, or we need to regard it as a feature of mysql.