Browse Source
MDEV-14164: Unknown column error when adding aggregate to function in oracle style procedure FOR loop
MDEV-14164: Unknown column error when adding aggregate to function in oracle style procedure FOR loop
Make differentiation between pullout for merge and pulout of outer field during exists2in transformation. In last case the field was outer and so we can safely start from name resolution context of the SELECT where it was pulled. Old behavior lead to inconsistence between list of tables and outer name resolution context (which skips one SELECT for merge purposes) which creates problem vor name resolution.pull/489/head
14 changed files with 153 additions and 45 deletions
-
37mysql-test/r/subselect_exists2in.result
-
40mysql-test/t/subselect_exists2in.test
-
26sql/item.cc
-
14sql/item.h
-
25sql/item_cmpfunc.cc
-
10sql/item_cmpfunc.h
-
5sql/item_func.cc
-
2sql/item_func.h
-
5sql/item_row.cc
-
2sql/item_row.h
-
15sql/item_subselect.cc
-
4sql/item_subselect.h
-
7sql/opt_subselect.cc
-
6sql/sql_derived.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue