Bug #85111 | replace does not update virtual column | ||
---|---|---|---|
Submitted: | 21 Feb 2017 19:14 | Modified: | 4 Jan 2020 12:37 |
Reporter: | Brian Maher | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S2 (Serious) |
Version: | 5.7.17 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[21 Feb 2017 19:14]
Brian Maher
[21 Feb 2017 19:25]
Brian Maher
To work around this, insert appears to work correctly: insert into bug (content, pk) values ('{"vcol":"val5"}', 1) on duplicate key update content=json_set(content, '$.vcol', 'val5'); ...or update clause appears to work as expected: update bug set content=json_set(content, '$.vcol', 'val2') where pk=1;
[22 Feb 2017 6:40]
MySQL Verification Team
Thank you for the report and test case. Verified as described.
[4 Jan 2020 12:37]
Roy Lyseng
Posted by developer: Fixed in 8.0.18