[MDEV-20539] With more than one CROSS JOIN columns of tables mentioned earlier in the FROM clause cannot be referenced in SELECT or WHERE clause (Error message: "Unknown column 'table.column' in 'where clause'") Created: 2019-09-08 Updated: 2019-09-09 Resolved: 2019-09-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | 10.1.41 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Clemens Robbenhaar | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian/Linux 9.10; Kernel 4.9.0-11-amd64; MariaDB Server version 10.1.41-MariaDB-0+deb9u1 |
||
| Issue Links: |
|
||||||||
| Description |
|
Yesterday I upgraded a Debian/Linux box from 9.9 to 9.10, which causes MariaDB to be upgraded from 10.1.38-MariaDB to 10.1.41-MariaDB-0+deb9u1 As a result SELECT queries fail that reference columns of a table in their SELECT or WHERE clause, if the statement has at least two "CROSS JOIN" clauses and the table in question is referenced before these two "CROSS JOIN" statements. A minimal example looks like this:
Only the last two statements produce the error message; the other ones are included to show that with slightly different statements the produced results are as expected. Can someone reproduce this with a plain 10.1.41 version of MariaDB, or is this specific to the Debian package? |
| Comments |
| Comment by Alice Sherepa [ 2019-09-09 ] | ||||||||||||
|
thanks! it was fixed by e746f451d57def4be6 commit by Igor Babaev:
| ||||||||||||
| Comment by Clemens Robbenhaar [ 2019-09-09 ] | ||||||||||||
|
Oh, I missed that issue and did not notice mine was a duplicate. |