[MDEV-11038] Error creating temporary tables in procedures Created: 2016-10-12 Updated: 2017-04-20 Resolved: 2017-04-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Procedure |
| Affects Version/s: | 10.1.14, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.0.29, 10.1.21, 10.2.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Diego Hellas | Assignee: | Oleksandr Byelkin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
CentOS 7 |
||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.23 | ||||||||
| Description |
|
Very strange situation to create and use temporary tables in procedures. In some procedures, it runs normally at first, but when it is re-executed in the same session the error happens. we found that this happens whenever we have a CREATE TABLE SELECT and SELECT is used any function. If you do not function being used, the error does not happen. example:
Run the procedure twice. |
| Comments |
| Comment by Elena Stepanova [ 2016-10-12 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
diegohellas, thanks for the report and test case. Reproducible on all 10.x versions. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2017-04-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
following commit fixes the problem: commit e4978d26b79120c58706e57fc66e4de1ec4b230c Cherry-pick: f4a0af070ce49abae60040f6f32e1074309c27fb Fix for bug #16672723 "CAN'T FIND TEMPORARY TABLE". | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2017-04-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|