[MDEV-14852] Fails to reopen temp table within standard CTE Created: 2018-01-02 Updated: 2018-01-05 Resolved: 2018-01-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - CTE |
| Affects Version/s: | 10.2.11, 10.2, 10.3 |
| Fix Version/s: | 10.2.13 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kenneth Penza | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 16.04.3 LTS running MariaDB 10.2.11. |
||
| Description |
|
Whilst working on data analysis using temporary tables on "10.2.11-MariaDB-10.2.11+maria~xenial-log" I noticed an issue with CTE's. Mariadb fails to reopen temporary tables if they are used more than once with the CTE query. (Note that if temporary tables are converted to permanent tables the below test case work fine). Running the below test case in database dbtestcase returns : "ERROR 1146 (42S02) at line 10 in file: 'testcase.sql': Table 'dbtestcase.tbcte2' doesn't exist" Testcase:
Server config:
|
| Comments |
| Comment by Alice Sherepa [ 2018-01-02 ] | ||||||||||||||||||
|
Kenneth Penza, thanks for the report! testcase:
| ||||||||||||||||||
| Comment by Igor Babaev [ 2018-01-05 ] | ||||||||||||||||||
|
A fix for this bug was pushed into the 10.2 tree |