Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11, 11.0(EOL), 11.1(EOL), 11.2, 11.3(EOL), 11.4, 11.5(EOL)
-
None
Description
These scripts demonstrate the problem:
SET @@div_precision_increment=4; |
CREATE OR REPLACE TABLE t1 ( |
a INT, |
v INT GENERATED ALWAYS AS (LENGTH(a/3)), |
KEY(v) |
) ENGINE=MyISAM;
|
INSERT INTO t1 (a) VALUES (1); |
SELECT * FROM t1; |
FLUSH TABLES;
|
SET @@div_precision_increment=8; |
SELECT * FROM t1; |
CHECK TABLE t1; |
+---------+-------+----------+---------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+---------------------------------------------------------+
|
| test.t1 | check | error | Checksum for key: 1 doesn't match checksum for records |
|
| test.t1 | check | error | Corrupt |
|
+---------+-------+----------+---------------------------------------------------------+
|
SET @@div_precision_increment=4; |
CREATE OR REPLACE TABLE t1 ( |
a INT, |
v VARCHAR(100) GENERATED ALWAYS AS (a/3.000), |
KEY(v) |
) ENGINE=MyISAM;
|
INSERT INTO t1 (a) VALUES (1); |
SELECT * FROM t1; |
FLUSH TABLES;
|
SET @@div_precision_increment=8; |
SELECT * FROM t1; |
CHECK TABLE t1; |
+---------+-------+----------+---------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+---------------------------------------------------------+
|
| test.t1 | check | error | Checksum for key: 1 doesn't match checksum for records |
|
| test.t1 | check | error | Corrupt |
|
+---------+-------+----------+---------------------------------------------------------+
|
SET @@div_precision_increment=4; |
CREATE OR REPLACE TABLE t1 ( |
a INT, |
v DECIMAL(48,30) GENERATED ALWAYS AS (a/3.000), |
KEY(v) |
) ENGINE=MyISAM;
|
INSERT INTO t1 (a) VALUES (1); |
SELECT * FROM t1; |
FLUSH TABLES;
|
SET @@div_precision_increment=8; |
SELECT * FROM t1; |
CHECK TABLE t1; |
+---------+-------+----------+---------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+-------+----------+---------------------------------------------------------+
|
| test.t1 | check | error | Checksum for key: 1 doesn't match checksum for records |
|
| test.t1 | check | error | Corrupt |
|
+---------+-------+----------+---------------------------------------------------------+
|
Attachments
Issue Links
- relates to
-
MDEV-20610 Assertion failed or btr_validate_index(..) in row_upd_sec_index_entry on a time_zone change
- Stalled
-
MDEV-34037 DATETIME <-> TIMESTAMP conversion in a virtual column corrups the table on @@time_zone change
- In Review
-
MDEV-34039 Some string functions in a virtual column lead the table corruption on @@max_allowed_packet change
- Open