[MDEV-10923] Subquery cannot see a CTE table Created: 2016-09-29 Updated: 2016-10-11 Resolved: 2016-10-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - CTE |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I have a query that
I believe the query should work, but it fails with a "Table doesn't exist" error. Testcase:
|
| Comments |
| Comment by Sergei Petrunia [ 2016-09-29 ] | |
|
The testcase works in PostgreSQL, for example. | |
| Comment by Sergei Petrunia [ 2016-09-29 ] | |
|
... and Oracle. Also, I can see the problem is caused by this usage of eu_eng:
If I replace "eu_eng" with "eng", it works. (Hmm, got RU into eu while playing with the example.. didn't mean to make any statements here) | |
| Comment by Igor Babaev [ 2016-10-11 ] | |
|
The fix for this bug was pushed into the 10.2 tree. |