[MDEV-9093] Persistent computed column is not updated when update query contains join Created: 2015-11-06 Updated: 2016-02-05 Resolved: 2016-02-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Virtual Columns |
| Affects Version/s: | 5.5.46, 10.0.19, 10.0, 10.1 |
| Fix Version/s: | 5.5.48, 10.0.24, 10.1.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Aleksandr Vishnyakov | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 5.5.48-0 |
| Description |
|
There is a table with persistent computed column:
I am updating name value using complex query which contains joins, this is much simplified version which does not work as well:
It updates name values but name_hash remains untouched. I've tried different cases with join and all of them do not update computed column. Updates without joins work fine. |
| Comments |
| Comment by Elena Stepanova [ 2015-11-06 ] | ||||||||||||||||||||
|
Thanks for the report. | ||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-12-14 ] | ||||||||||||||||||||
|
test suite (join in the UPDATE is important)
| ||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-12-14 ] | ||||||||||||||||||||
|
test suite for 5.5
| ||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-12-14 ] | ||||||||||||||||||||
|
revision-id: 744c1c5de4dc63fc8291fd69c04a60b395f0fca4 (mariadb-5.5.47-7-g744c1c5)
added lost virtual fields update call — | ||||||||||||||||||||
| Comment by Sergei Golubchik [ 2016-02-04 ] | ||||||||||||||||||||
|
ok to push |