diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-03-26 11:37:18 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-03-26 11:37:18 +0400 |
commit | 6fbbb0853e7e58621f73f0afc600cd95995413ed (patch) | |
tree | 5206eecee6f4a398db8a24f7273c08f7d1e7afaa /sql/sql_select.cc | |
parent | ed643f4bb31d8e5a9c0bc161583b8c9b2a08c26b (diff) | |
download | mariadb-git-6fbbb0853e7e58621f73f0afc600cd95995413ed.tar.gz |
MDEV-18968 Both (WHERE 0.1) and (WHERE NOT 0.1) return empty set
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 280de2b2ef1..62365f48404 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -15644,7 +15644,7 @@ Item::remove_eq_conds(THD *thd, Item::cond_result *cond_value, bool top_level_ar { if (const_item() && !is_expensive()) { - *cond_value= eval_const_cond(this) ? Item::COND_TRUE : Item::COND_FALSE; + *cond_value= eval_const_cond() ? Item::COND_TRUE : Item::COND_FALSE; return (COND*) 0; } *cond_value= Item::COND_OK; @@ -15658,7 +15658,7 @@ Item_bool_func2::remove_eq_conds(THD *thd, Item::cond_result *cond_value, { if (const_item() && !is_expensive()) { - *cond_value= eval_const_cond(this) ? Item::COND_TRUE : Item::COND_FALSE; + *cond_value= eval_const_cond() ? Item::COND_TRUE : Item::COND_FALSE; return (COND*) 0; } if ((*cond_value= eq_cmp_result()) != Item::COND_OK) |