diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2015-08-05 11:57:35 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2015-08-05 11:57:35 +0200 |
commit | ee656a4aabb5ebbe973b7e4c99be83eb5dc8c0ce (patch) | |
tree | d367f6f46d7141f76ce13f53f363823b8e21ba71 | |
parent | 9f8a458fb2d07298810bb5d9824ce728017bfb32 (diff) | |
download | mariadb-git-bb-5.5-MDEV-7445-7565-7846.tar.gz |
MDEV-7846: postreview fixbb-5.5-MDEV-7445-7565-7846
-rw-r--r-- | sql/item_cmpfunc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 29fff8e460f..e96d1bc0c36 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -1455,12 +1455,13 @@ bool Item_in_optimizer::fix_left(THD *thd, Item **ref) next execution we need to copy args[1]->left_expr again. */ ref0= &(((Item_in_subselect *)args[1])->left_expr); + args[0]= ((Item_in_subselect *)args[1])->left_expr; } if ((!(*ref0)->fixed && (*ref0)->fix_fields(thd, ref0)) || (!cache && !(cache= Item_cache::get_cache(*ref0)))) DBUG_RETURN(1); if (args[0] != (*ref0)) - current_thd->change_item_tree(args, (*ref0)); + args[0]= (*ref0); DBUG_PRINT("info", ("actual fix fields")); cache->setup(args[0]); |