diff options
author | Igor Babaev <igor@askmonty.org> | 2019-03-14 17:41:35 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2019-03-14 17:41:35 -0700 |
commit | 0dd12b4f2a72245a0fb491685c172a7b0e48cbc5 (patch) | |
tree | 09809f3b930995e8001a8b8c32f8e0170a0e4716 /client | |
parent | 8024f8c6b86b204c3475e562587640cf2b141683 (diff) | |
download | mariadb-git-0dd12b4f2a72245a0fb491685c172a7b0e48cbc5.tar.gz |
MDEV-18896 Crash in convert_join_subqueries_to_semijoins
If an IN-subquery is used in a table-less select the current code
should never consider it as candidate for semi-join optimizations.
Yet the function check_and_do_in_subquery_rewrites() improperly
checked the property "to be a table-less select". As a result
such select in IN subquery was used in INSERT .. SELECT then
the IN subquery by mistake was registered as a semi-join subquery
and convert_subq_to_sj() was called for it. However the code of
this function does not assume that the parent select of the subquery
could be a table-less select.
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions