[MDEV-584] LP:1013343 - SUBQUERY changes to DEPENDENT SUBQUERY when using a trivial derived table Created: 2012-06-14 Updated: 2012-11-14 Resolved: 2012-11-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
There are two queries that are different only in that one of them accesses a table directly, while the other reads it from a "trivial" derived table, ie. through a "(SELECT * FROM t2) as alias" construct. EXPLAINs should be the same, but they are different:
|
| Comments |
| Comment by Sergei Petrunia [ 2012-06-14 ] |
|
Re: SUBQUERY changes to DEPENDENT SUBQUERY when using a trivial derived table |
| Comment by Sergei Petrunia [ 2012-06-14 ] |
|
Re: SUBQUERY changes to DEPENDENT SUBQUERY when using a trivial derived table #0 Item_in_subselect::create_in_to_exists_cond (this=0xa2249e0, join_arg=0xa228518) at /home/psergey/dev2/5.5-show-explain-r21/sql/item_subselect.cc:2291 The query without FROM subquery doesn't. |
| Comment by Sergei Petrunia [ 2012-06-14 ] |
|
Re: SUBQUERY changes to DEPENDENT SUBQUERY when using a trivial derived table === without FROM === === with FROM === |
| Comment by Sergei Petrunia [ 2012-06-14 ] |
|
Re: SUBQUERY changes to DEPENDENT SUBQUERY when using a trivial derived table |
| Comment by Sergei Petrunia [ 2012-06-14 ] |
|
Re: SUBQUERY changes to DEPENDENT SUBQUERY when using a trivial derived table === modified file 'sql/item_subselect.cc'
|
| Comment by Rasmus Johansson (Inactive) [ 2012-06-14 ] |
|
Launchpad bug id: 1013343 |
| Comment by Sergei Petrunia [ 2012-11-14 ] |
|
Fixed in MariaDB 10.0 (the fix pushed as part of SHOW EXPLAIN code). |