summaryrefslogtreecommitdiff
path: root/mysql-test/t/parser_stack.test
diff options
context:
space:
mode:
authorMartin Hansson <martin.hansson@sun.com>2010-05-06 10:45:00 +0200
committerMartin Hansson <martin.hansson@sun.com>2010-05-06 10:45:00 +0200
commit1eada91053287af3d46da93b88d5feb30ed4ba27 (patch)
tree820b4d95227c2cc94147b43de2c56df849680c89 /mysql-test/t/parser_stack.test
parentf63608ea97133b12a1a5b78326e5eaddefb4d9b2 (diff)
downloadmariadb-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