Merge 10.1 into 10.2

This commit is contained in:
Marko Mäkelä 2019-03-26 14:17:19 +02:00
commit 226ca250ed
21 changed files with 141 additions and 82 deletions

View file

@ -4616,7 +4616,7 @@ Item_cond::fix_fields(THD *thd, Item **ref)
if (item->const_item() && !item->with_param &&
!item->is_expensive() && !cond_has_datetime_is_null(item))
{
if (item->val_int() == is_and_cond && top_level())
if (item->eval_const_cond() == is_and_cond && top_level())
{
/*
a. This is "... AND true_cond AND ..."