1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug #8164: subquery with INFORMATION_SCHEMA.COLUMNS, 100 % CPU

This commit is contained in:
unknown
2005-03-03 19:20:16 +03:00
parent 66d2d13a8e
commit c7fdbffa0d
3 changed files with 20 additions and 0 deletions

View File

@ -1649,6 +1649,10 @@ bool uses_only_table_name_fields(Item *item, TABLE_LIST *table)
strlen(item_field->field_name), 0)))
return 0;
}
if (item->type() == Item::SUBSELECT_ITEM &&
!item->const_item())
return 0;
return 1;
}