1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

fixed bugs 442/443 (reduced subselect in ORDER/GROUP clauses)

This commit is contained in:
bell@sanja.is.com.ua
2003-05-19 15:32:38 +03:00
parent 524878e935
commit 9e8c3a6fac
3 changed files with 38 additions and 2 deletions

View File

@@ -7167,9 +7167,11 @@ find_order_in_list(THD *thd, Item **ref_pointer_array,
}
order->in_field_list=0;
Item *it= *order->item;
if (it->fix_fields(thd, tables, order->item) || it->check_cols(1) ||
if (it->fix_fields(thd, tables, order->item) ||
//'it' ressigned because fix_field can change it
(it= *order->item), it->check_cols(1) ||
thd->is_fatal_error)
return 1; // Wrong field
return 1; // Wrong field
uint el= all_fields.elements;
all_fields.push_front(it); // Add new field to field list
ref_pointer_array[el]= it;