[MDEV-13371] Classic CTE query fails in 10.2.2 Created: 2017-07-22 Updated: 2017-07-23 Resolved: 2017-07-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - CTE |
| Affects Version/s: | 10.2.2 |
| Fix Version/s: | 10.2.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Peter Brawley | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | CTEs | ||
| Environment: |
Linux Mint 18 64-bit |
||
| Issue Links: |
|
||||||||
| Description |
|
Joe Celko's "Classroom scheduling problem" has a classic CTE solution that works unproblematically eg in SQL Server 2014 and PostgreSQL 9.6, but fails in MariaDB 10.2.2. An explanation of the query problem and its CTE solution is here.
MariaDB 10.2.2 responds with: "Table 'test.Matches' doesn't exist." |
| Comments |
| Comment by Peter Brawley [ 2017-07-23 ] | ||||||||||||
|
Forgot to mention: the query works in MySQL 8.0.2 dmr. | ||||||||||||
| Comment by Elena Stepanova [ 2017-07-23 ] | ||||||||||||
|
10.2.2 was the first beta, please don't use it for anything important. There have been several releases since then, and many problems have been fixed. This one in particular was fixed in 10.2.6 in scope of
| ||||||||||||
| Comment by Peter Brawley [ 2017-07-23 ] | ||||||||||||
|
Thx, I can confirm the bug is gone in 10.2.7. |