mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
sql_select.cc:
Postfix for bug#22331. sql/sql_select.cc: Postfix for bug#22331.
This commit is contained in:
parent
1631f65dfd
commit
4c0ab891ea
1 changed files with 2 additions and 1 deletions
|
@ -7621,7 +7621,8 @@ static COND* substitute_for_best_equal_field(COND *cond,
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (!((Item_cond*)cond)->argument_list()->elements)
|
||||
if (cond->type() == Item::COND_ITEM &&
|
||||
!((Item_cond*)cond)->argument_list()->elements)
|
||||
cond= new Item_int((int32)cond->val_bool());
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue