diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2011-01-11 12:42:16 +0200 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2011-01-11 12:42:16 +0200 |
commit | ef6232095743df0f89c5c876205c14c3c1ca8f92 (patch) | |
tree | 8783096a9101083bbaac49a37799899d95c794c8 /sql/table.h | |
parent | efbb3c6c90279f2bed8dda9c48dbaaf8b09a8cae (diff) | |
download | mariadb-git-ef6232095743df0f89c5c876205c14c3c1ca8f92.tar.gz |
BUG#675118: Elimination of a table results in an invalid execution plan
- Fix for MySQL BUG#52357 added NESTED_JOIN::is_fully_covered() which would
not take into account that MariaDB's table elimination could eliminate tables
from join plan (and so, from join nest).
Fixed the check in the function to compare post-table-elimination numbers.
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.h b/sql/table.h index 828d01f3783..4692f5d7607 100644 --- a/sql/table.h +++ b/sql/table.h @@ -1736,7 +1736,7 @@ typedef struct st_nested_join 2. All child join nest nodes are fully covered. */ - bool is_fully_covered() const { return join_list.elements == counter; } + bool is_fully_covered() const { return n_tables == counter; } } NESTED_JOIN; |