Bug #93670 | virtual generated column index data inconsistency | ||
---|---|---|---|
Submitted: | 19 Dec 2018 2:46 | Modified: | 14 May 2019 17:31 |
Reporter: | rui xu | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S2 (Serious) |
Version: | 5.7, 8.0 | OS: | Linux |
Assigned to: | CPU Architecture: | x86 | |
Tags: | virtual generated column foreign key update on cascade |
[19 Dec 2018 2:46]
rui xu
[19 Dec 2018 14:19]
MySQL Verification Team
Hi, I have tested this with 5.7.24 and I get the following results: fld1 1 2 pk1 fld1 fld2 1 1 1 2 2 2 fld2 1 2 pk1 fld1 fld2 1 1 1 2 3 3 fld2 1 2 Hence, you have proved your point. After update we get the wrong results with different query. Verified as reported.
[19 Dec 2018 14:20]
MySQL Verification Team
Same results are returned with 8.0. Hence, the "Version" field is properly updated.
[14 May 2019 17:31]
Paul DuBois
Posted by developer: Fixed in 5.7.27. An index defined on a virtual generated column could fail to be updated if the column had a base column in a foreign key relationship.
[15 May 2019 12:46]
MySQL Verification Team
Thank you, Paul.