[MDEV-25672] table alias from previous statement interferes later commands Created: 2021-05-14 Updated: 2021-06-23 Resolved: 2021-06-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server, Virtual Columns |
| Affects Version/s: | 10.3.29, 10.4.19, 10.5.10, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.39, 10.3.30, 10.4.20, 10.5.11 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Soner Sayakci | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
When an Update Statement happens with an alias. The alias seems to replace the table name. See below an example Query to reproduce the failure:
Results in the following error on the ALTER TABLE statement:
|
| Comments |
| Comment by Alice Sherepa [ 2021-05-14 ] | ||||||||
|
Thank you! Repeatable on 10.2-10.5
| ||||||||
| Comment by Alice Sherepa [ 2021-05-14 ] | ||||||||
|
test case from
| ||||||||
| Comment by Soner Sayakci [ 2021-05-17 ] | ||||||||
|
Hey @alice, Can we expect a fix in the next patch version? Building and integrating a workaround is hard | ||||||||
| Comment by Sergei Golubchik [ 2021-05-17 ] | ||||||||
|
Yes, it will be fixed in the next release. As a workaround I'd think a FLUSH TABLES before ALTER should hide the bug. | ||||||||
| Comment by Aleksey Midenkov [ 2021-05-31 ] | ||||||||
|
Please review 2 commits in bb-10.2-midenok | ||||||||
| Comment by Nikita Malyavin [ 2021-06-01 ] | ||||||||
|
FYI git bisect points to | ||||||||
| Comment by Aleksey Midenkov [ 2021-06-02 ] | ||||||||
|
nikitamalyavin just look at Issue Links caused by. | ||||||||
| Comment by Aleksey Midenkov [ 2021-06-02 ] | ||||||||
|
ralf.gebhardt@mariadb.com serg If there is no time for this fix to be properly tested then | ||||||||
| Comment by Sergei Golubchik [ 2021-06-02 ] | ||||||||
|
I'd rather push a one-liner, as discussed on slack. I'll fix the bug without reopening |