diff options
author | Gleb Shchepa <gleb.shchepa@oracle.com> | 2013-02-28 01:33:00 +0400 |
---|---|---|
committer | Gleb Shchepa <gleb.shchepa@oracle.com> | 2013-02-28 01:33:00 +0400 |
commit | 4c002ad7948f31d43a9f14c00181b9499445abfb (patch) | |
tree | 114068c8ddc4c32cd2bd9b8d98095beddee7ec4d /sql/item_cmpfunc.cc | |
parent | aeb9e7d8146e286b0d68f80dda0d5d3893ab9f86 (diff) | |
parent | 9e80a7891a43b9fa460eb7d10077812f0a5027d6 (diff) | |
download | mariadb-git-4c002ad7948f31d43a9f14c00181b9499445abfb.tar.gz |
Manual up-merge (16311231 backport)
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 32b1ae4914a..80479517184 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -4700,7 +4700,7 @@ longlong Item_is_not_null_test::val_int() { DBUG_ASSERT(fixed == 1); DBUG_ENTER("Item_is_not_null_test::val_int"); - if (const_item_cache) + if (!used_tables_cache && !with_subselect) { owner->was_null|= (!cached_value); DBUG_PRINT("info", ("cached: %ld", (long) cached_value)); @@ -4721,12 +4721,10 @@ longlong Item_is_not_null_test::val_int() */ void Item_is_not_null_test::update_used_tables() { - const_item_cache= false; if (!args[0]->maybe_null) { used_tables_cache= 0; /* is always true */ cached_value= (longlong) 1; - const_item_cache= true; } else { @@ -4735,7 +4733,6 @@ void Item_is_not_null_test::update_used_tables() { /* Remember if the value is always NULL or never NULL */ cached_value= (longlong) !args[0]->is_null(); - const_item_cache= true; } } } |