[MDEV-16253] Dropping temporary table and actual table with same name Created: 2018-05-22 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System, Data Definition - Alter Table, Data Definition - Temporary |
| Affects Version/s: | None |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This code works.
Make Note, this should be fixed in the earliest release where it makes sense. |
| Comments |
| Comment by Michael Widenius [ 2018-05-22 ] | |||||
|
Hint for fixing: Remove this line from sql_parse.cc (it's just wrong): This doesn't work as it will assume that in "drop table t1,t1' that both t1 are temporary tables, and grant checking I did something similar in 10.0 for RENAME TABLE with temporary tables. | |||||
| Comment by Anel Husakovic [ 2018-06-12 ] | |||||
|
Hi Michel, Vicentiu,
After the last line server crashes because the line sql_table.cc:2127 (In comment of this file is written that is not expected to have the same name of temp/base tables). _What should we do in this case _? What should be a starting point to solve this ? | |||||
| Comment by Anel Husakovic [ 2020-08-25 ] | |||||
|
julien.fritsch it wasn't assigned to me for review. I'm author of the patch PR #796. |