diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-02-10 21:07:03 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-02-10 21:07:03 +0100 |
commit | e3894f5d397722dd50fb91dbbdbad3aaf017a4b0 (patch) | |
tree | 5d10a3e673c780b1588cda82e88a3d899345c416 /sql/sql_base.cc | |
parent | cce994057bf7e2bdb62686075de03aeb5db4bbda (diff) | |
parent | 9aa3564e8a06c3d2027fc514213ecf42b049b06e (diff) | |
download | mariadb-git-e3894f5d397722dd50fb91dbbdbad3aaf017a4b0.tar.gz |
Merge branch '10.5 into 10.6mariadb-10.6.7
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 18f89eabfe3..0e55ba9816a 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -6457,8 +6457,11 @@ find_field_in_tables(THD *thd, Item_ident *item, for (SELECT_LEX *sl= current_sel; sl && sl!=last_select; sl=sl->outer_select()) { - Item_in_subselect *in_subs= - sl->master_unit()->item->get_IN_subquery(); + Item *subs= sl->master_unit()->item; + if (!subs) + continue; + + Item_in_subselect *in_subs= subs->get_IN_subquery(); if (in_subs && in_subs->substype() == Item_subselect::IN_SUBS && in_subs->test_strategy(SUBS_SEMI_JOIN)) |