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:
@ -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
|
||||
|
Reference in New Issue
Block a user