summaryrefslogtreecommitdiff
path: root/mysql-test/t/subselect_no_opts.test
diff options
context:
space:
mode:
authorunknown <timour@askmonty.org>2013-03-29 17:53:21 +0200
committerunknown <timour@askmonty.org>2013-03-29 17:53:21 +0200
commit599a1384af7d38e4319bd6258c6954750f5b9ba4 (patch)
tree59be14d43461e4b717eb07c8e865e471756691b7 /mysql-test/t/subselect_no_opts.test
parentfa01b76be7b22b457e2f53fbceaaa371b7790491 (diff)
downloadmariadb-git-599a1384af7d38e4319bd6258c6954750f5b9ba4.tar.gz
Fix for MDEV-4144
Analysis: The reason for the inefficent plan was that Item_subselect::is_expensive() didn't detect the special case when a subquery was optimized, but had no join plan because it either has no table, or its tables have been optimized away, or the optimizer detected that the result set is empty. Solution: Identify the special cases above in the Item_subselect::is_expensive(), and consider such degenerate subqueries inexpensive.
Diffstat (limited to 'mysql-test/t/subselect_no_opts.test')
0 files changed, 0 insertions, 0 deletions