mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Name resolution context added (BUG#6443)
This commit is contained in:
@ -77,7 +77,8 @@ static int make_new_olap_select(LEX *lex, SELECT_LEX *select_lex, List<Item> new
|
||||
{
|
||||
not_found= 0;
|
||||
((Item_field*)new_item)->db_name=iif->db_name;
|
||||
Item_field *new_one=new Item_field(iif->db_name, iif->table_name, iif->field_name);
|
||||
Item_field *new_one=new Item_field(&select_lex->context,
|
||||
iif->db_name, iif->table_name, iif->field_name);
|
||||
privlist.push_back(new_one);
|
||||
if (add_to_list(new_select->group_list,new_one,1))
|
||||
return 1;
|
||||
@ -152,12 +153,11 @@ int handle_olaps(LEX *lex, SELECT_LEX *select_lex)
|
||||
List<Item> all_fields(select_lex->item_list);
|
||||
|
||||
|
||||
if (setup_tables(lex->thd, (TABLE_LIST *)select_lex->table_list.first
|
||||
if (setup_tables(lex->thd, &select_lex->context,
|
||||
(TABLE_LIST *)select_lex->table_list.first
|
||||
&select_lex->where, &select_lex->leaf_tables, FALSE) ||
|
||||
setup_fields(lex->thd, 0, (TABLE_LIST *)select_lex->table_list.first,
|
||||
select_lex->item_list, 1, &all_fields,1) ||
|
||||
setup_fields(lex->thd, 0, (TABLE_LIST *)select_lex->table_list.first,
|
||||
item_list_copy, 1, &all_fields, 1))
|
||||
setup_fields(lex->thd, 0, select_lex->item_list, 1, &all_fields,1) ||
|
||||
setup_fields(lex->thd, 0, item_list_copy, 1, &all_fields, 1))
|
||||
return -1;
|
||||
|
||||
if (select_lex->olap == CUBE_TYPE)
|
||||
|
Reference in New Issue
Block a user