1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix for BUG#13410 - qualified reference to a view column in the HAVING clause cannot be resolved.

The problem was then when a column reference was resolved to a view column, the new Item
created for this column contained the name of the view, and not the view alias.
This commit is contained in:
timour@mysql.com
2005-10-01 09:35:30 +03:00
parent dea64fb643
commit 77cf84186e
6 changed files with 18 additions and 22 deletions

View File

@ -3357,9 +3357,9 @@ find_item_in_list(Item *find, List<Item> &items, uint *counter,
for (uint i= 0; (item=li++); i++)
{
if (field_name && item->type() == Item::FIELD_ITEM)
if (field_name && item->real_item()->type() == Item::FIELD_ITEM)
{
Item_field *item_field= (Item_field*) item;
Item_ident *item_field= (Item_ident*) item;
/*
In case of group_concat() with ORDER BY condition in the QUERY