diff options
| author | Martin Hansson <martin.hansson@sun.com> | 2010-05-06 10:45:00 +0200 |
|---|---|---|
| committer | Martin Hansson <martin.hansson@sun.com> | 2010-05-06 10:45:00 +0200 |
| commit | 1eada91053287af3d46da93b88d5feb30ed4ba27 (patch) | |
| tree | 820b4d95227c2cc94147b43de2c56df849680c89 /mysql-test/t/parser_stack.test | |
| parent | f63608ea97133b12a1a5b78326e5eaddefb4d9b2 (diff) | |
| download | mariadb-git-1eada91053287af3d46da93b88d5feb30ed4ba27.tar.gz | |
Bug#52357: Assertion failed: join->best_read in
greedy_search optimizer_search_depth=0
The algorithm inside restore_prev_nj_state failed to
properly update the counters within the NESTED_JOIN
tree. The counter was decremented each time a table in the
node was removed from the QEP, the correct thing to do being
only to decrement it when the last table in the child node
was removed from the plan. This lead to node counters
getting negative values and the plan thus appeared
impossible. An assertion caught this.
Fixed by not recursing up the tree unless the last table in
the join nest node is removed from the plan
Diffstat (limited to 'mysql-test/t/parser_stack.test')
0 files changed, 0 insertions, 0 deletions
