summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2017-10-13 07:24:35 -0700
committerIgor Babaev <igor@askmonty.org>2017-10-13 07:24:54 -0700
commit2bab29ebba7a641d43a98737fd1c160971357cd4 (patch)
tree0f6c87a6b706e4e18847418341681bf52605c699 /sql/item_subselect.cc
parent8be76a6a907ab858b4fdb5d525548aedfdb4ddf3 (diff)
downloadmariadb-git-2bab29ebba7a641d43a98737fd1c160971357cd4.tar.gz
Fixed the bug mdev-13135.
For each SELECT the list sj_nests is built by the function simplify_joins() when scanning different join nests. This function may be called several times for the same join nest. That's why before adding a new member to sj_nests it is necessary to check if it's already in the list. The code of simplify_joins() lacked this check and as a result it could cause memory overwright for some queries.
Diffstat (limited to 'sql/item_subselect.cc')
0 files changed, 0 insertions, 0 deletions