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

fixed temporary table processing expresions of subqueries and removed wrong restrictions of field resolving (BUG#5326)

This commit is contained in:
bell@sanja.is.com.ua
2004-09-06 13:00:24 +03:00
parent ad6ad34b45
commit 5d42c492d6
6 changed files with 24 additions and 12 deletions

View File

@ -2142,8 +2142,12 @@ find_item_in_list(Item *find, List<Item> &items, uint *counter,
case sensitive.
In cases where they are not case sensitive, they are always in lower
case.
item_field->field_name and item_field->table_name can be 0x0 if
item is not fix fielded yet.
*/
if (!my_strcasecmp(system_charset_info, item_field->field_name,
if (item_field->field_name && item_field->table_name &&
!my_strcasecmp(system_charset_info, item_field->field_name,
field_name) &&
!strcmp(item_field->table_name, table_name) &&
(!db_name || (item_field->db_name &&