[MDEV-13780] CTE not found Created: 2017-09-11 Updated: 2021-07-08 Resolved: 2017-11-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - CTE |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | CARME Antoine | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Hi, When trying to find a workaround for jira This is a sample new SQL code : and when executed, it outputs the error : 1146, "Table 'db.DT_node_lookup' doesn't exist" There is no such table, but a CTE is defined in the SQL code with the same name. At first, the last error seems to be a CTE resolution issue when CTEs are defined inside CTEs. I am working on debian, with a mariadb version 10.2.8. Thanks in advance Antoine |
| Comments |
| Comment by Igor Babaev [ 2017-09-12 ] | |||||||
|
The following simple test case demonstrates this problem:
When running the above query we get:
| |||||||
| Comment by CARME Antoine [ 2017-09-12 ] | |||||||
|
Great. What a precision. This is a kind of surgical pattern extraction !!!! | |||||||
| Comment by Igor Babaev [ 2017-09-13 ] | |||||||
|
Antoine,
| |||||||
| Comment by CARME Antoine [ 2017-09-13 ] | |||||||
|
We have a fix. Excellent. Tests are not optional !! It's business as usual. | |||||||
| Comment by Igor Babaev [ 2017-11-06 ] | |||||||
|
A fix for this bug was pushed into 10.2 | |||||||
| Comment by CARME Antoine [ 2017-11-06 ] | |||||||
|
Excellent. Thanks a lot. Waiting for the 10.2.11 release. Antoine |