[MDEV-26985] Outside reference in recursive common table expression Created: 2021-11-06 Updated: 2021-11-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Tadas Balaišis | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Since lack of TABLE() function, I try to use recursive CTE to emulate same functionality:
This works fine. But I'm interested in uncommented version:
or
to use value from outside inline view. Unfortunately both queries fail with error. Can you provide a sample query to demonstrate how can I use value from outside inline view that could be used in recursive loop exit condition? |
| Comments |
| Comment by Tadas Balaišis [ 2021-11-08 ] | ||||||||||
|
Not sure about performance, but I switched to this workaround:
|