diff options
author | unknown <igor@rurik.mysql.com> | 2005-09-26 23:29:02 -0700 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2005-09-26 23:29:02 -0700 |
commit | d7e4e1a56173df249ec4c27a332c127752771628 (patch) | |
tree | cc372feaa4c206f063fca31950c8e5422173550a /sql/item.cc | |
parent | 2cd3fd4160d904906272412fc1cfdfc03b94eedc (diff) | |
download | mariadb-git-d7e4e1a56173df249ec4c27a332c127752771628.tar.gz |
item.cc:
Fixed bug #13410.
Fixed name resolution for qualified reference to a view column
in the HAVING clause.
view.result, view.test:
Added a test case for bug #13410.
mysql-test/t/view.test:
Added a test case for bug #13410.
mysql-test/r/view.result:
Added a test case for bug #13410.
sql/item.cc:
Fixed bug #13410.
Fixed name resolution for qualified reference to a view column
in the HAVING clause.
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc index 012c389b939..92a7330374a 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -2983,7 +2983,7 @@ static Item** find_field_in_group_list(Item *find_item, ORDER *group_list) for (ORDER *cur_group= group_list ; cur_group ; cur_group= cur_group->next) { - if ((*(cur_group->item))->type() == Item::FIELD_ITEM) + if ((*(cur_group->item))->real_item()->type() == Item::FIELD_ITEM) { cur_field= (Item_field*) *cur_group->item; cur_match_degree= 0; |