mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
Review of new pushed code
- No need to check *ref when ref is checked (Simple optimization fix) sql/item.cc: No need to check *ref
This commit is contained in:
parent
6c89848de9
commit
d853ecd67c
1 changed files with 2 additions and 2 deletions
|
|
@ -351,8 +351,8 @@ bool Item_field::fix_fields(THD *thd,TABLE_LIST *tables)
|
|||
{
|
||||
if (thd->lex.select_lex.is_item_list_lookup)
|
||||
{
|
||||
Item** res= find_item_in_list(this, thd->lex.select_lex.item_list);
|
||||
if (res && *res && (*res)->type() == Item::FIELD_ITEM)
|
||||
Item **res= find_item_in_list(this, thd->lex.select_lex.item_list);
|
||||
if (res && (*res)->type() == Item::FIELD_ITEM)
|
||||
{
|
||||
set_field((*((Item_field**)res))->field);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue