[MDEV-3791] LP:430669 - Wrong output of EXPLAIN EXTENDED on subquery with unknown column error Created: 2009-09-16 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Kristian Nielsen | Assignee: | Sergei Petrunia |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad, MariaDB_5.1 | ||
| Attachments: |
|
| Description |
|
Seen in lp:maria in revision revid:<email address hidden> (after push of table elimination): CREATE TABLE t1 (a INT, b INT, c INT); The problem here is this output "group by `t1`.`c`". The column `c` is unknown at that place in the query, so it makes no sense to qualify it with the table name t1. This is related to MySQL Bug#37362 (http://bugs.mysql.com/bug.php?id=37362), from which the test case originates. Before push of table elimination, the test case crashes the server, so the table elimination push fixes the crash, but produces wrong/strange output. I will push the test case into lp:maria with wrong/strange result file (to not block the merge of MySQL 5.1.38). This needs to be updated after fixing the bug: === modified file 'mysql-test/r/subselect3.result' |
| Comments |
| Comment by Hakan Küçükyılmaz (Inactive) [ 2010-05-26 ] |
|
Re: Wrong output of EXPLAIN EXTENDED on subquery with unknown column error it looks like that MySQL Bug#37362 (http://bugs.mysql.com/bug.php?id=37362) is already fixed. Do we have this fix in MariaDB, too? Thanks, Hakan |
| Comment by Kristian Nielsen [ 2010-06-08 ] |
|
Re: Wrong output of EXPLAIN EXTENDED on subquery with unknown column error But note that this bug is about a different problem with the query, and it is not fixed in latest 5.2. MySQL 5.1 does not have this bug. |
| Comment by Sergei Petrunia [ 2011-06-15 ] |
|
Re: Wrong output of EXPLAIN EXTENDED on subquery with unknown column error |
| Comment by Sergei Petrunia [ 2011-06-15 ] |
|
Re: Wrong output of EXPLAIN EXTENDED on subquery with unknown column error I don't think this is the case. Let's look at the query again: 01 EXPLAIN EXTENDED SELECT c The "GROUP BY c" clause we're talking about is on line 8. The "unknown column c" error is produced for the reference to column "c" made from line 1. |
| Comment by Sergei Petrunia [ 2011-06-15 ] |
|
Re: Wrong output of EXPLAIN EXTENDED on subquery with unknown column error Changing status to invalid. |
| Comment by Rasmus Johansson (Inactive) [ 2011-06-16 ] |
|
Launchpad bug id: 430669 |
| Comment by Kristian Nielsen [ 2011-06-16 ] |
|
Re: Wrong output of EXPLAIN EXTENDED on subquery with unknown column error |