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/item_cmpfunc.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/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 2c1320f82b3..28e94275c85 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -4667,7 +4667,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 ..." |