summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorKentoku <kentokushiba@gmail.com>2019-05-28 16:40:59 +0900
committerKentoku <kentokushiba@gmail.com>2019-09-02 07:06:05 +0900
commit4a8dafe26ec1aa97c153f7dedc7a487b6cedffd9 (patch)
tree101a557ddf6adbc4d76deac240d6a1dcf52f06c9 /sql/sql_select.cc
parent24773bf38024d32c9af4e6bc09e67043318bba6e (diff)
downloadmariadb-git-bb-10.4-MDEV-6268.tar.gz
MDEV-6268 SPIDER table with no COMMENT clause causes queries to wait foreverbb-10.4-MDEV-6268
Add loop checks by using user variables
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 598f46594e5..f85e598b776 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -3123,7 +3123,7 @@ bool JOIN::make_aggr_tables_info()
distinct in the engine, so we do this for all queries, not only
GROUP BY queries.
*/
- if (tables_list && !procedure)
+ if (tables_list && !procedure && join_tab)
{
/*
At the moment we only support push down for queries where