summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-01-17 11:24:38 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-01-17 11:24:38 +0200
commit8e80fd6bfdf2ea7d1870662ecd4d8129f3c76301 (patch)
treec3ed8b49caac6119deb2e3839f8c0b8662e35b8b /sql/sql_lex.cc
parentf3e9d9a6e6b2614bf5d57ccf9434c980e4a90424 (diff)
parentc1aae370879490dc0a3cd63c5b1010fa21b1f62c (diff)
downloadmariadb-git-8e80fd6bfdf2ea7d1870662ecd4d8129f3c76301.tar.gz
Merge 10.1 into 10.2
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 7b7693036b2..6d1a15baece 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -3857,6 +3857,7 @@ bool st_select_lex::optimize_unflattened_subqueries(bool const_only)
inner_join->select_options|= SELECT_DESCRIBE;
}
res= inner_join->optimize();
+ sl->update_used_tables();
sl->update_correlated_cache();
is_correlated_unit|= sl->is_correlated;
inner_join->select_options= save_options;