diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-10-04 16:46:41 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-10-04 16:46:41 +0200 |
commit | 52a3e03bc8e3d9758d66c5e325319faca52e9772 (patch) | |
tree | 65358fc27e7a4fe6ba398a60ff499eaaedffc380 /sql/sql_select.cc | |
parent | 5b2fa078e8aee75a180461963bd54ce885445c17 (diff) | |
download | mariadb-git-bb-10.3-MDEV-20753.tar.gz |
MDEV-20753: Sequence with limit 0 crashes serverbb-10.3-MDEV-20753
Do not try to push down conditions to engine if query was resolved without tables (and so the engine).
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 460c7346cdd..143a33c72f5 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -2795,7 +2795,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 && table_count && !procedure) { /* At the moment we only support push down for queries where |