[Commits] 0dd2d7d91d2: MDEV-20224: main.derived crashes with ASAN with error use-after-poison
revision-id: 0dd2d7d91d23bcfc035de8a024af40dc36f543ff (mariadb-10.4.4-258-g0dd2d7d91d2) parent(s): 46553c250808f0cc21e91f7e13439add2903aea0 author: Varun Gupta committer: Varun Gupta timestamp: 2019-08-01 11:16:06 +0530 message: MDEV-20224: main.derived crashes with ASAN with error use-after-poison Make sure that the references in the GROUP BY clause that need to be considered for pushdown from having to where are of Item_field objects --- sql/sql_lex.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index feda4cd23fb..eceef9a7097 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -7893,6 +7893,7 @@ bool st_select_lex::collect_grouping_fields(THD *thd) Item *item= *ord->item; if (item->type() != Item::FIELD_ITEM && !(item->type() == Item::REF_ITEM && + ((Item_ref*)item)->real_type() == Item::FIELD_ITEM && ((((Item_ref *) item)->ref_type() == Item_ref::VIEW_REF) || (((Item_ref *) item)->ref_type() == Item_ref::REF)))) continue;
participants (1)
-
Varun