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 | 93c9359280d6106b26c85fd312977bad2c4ada98 (patch) | |
tree | 114068c8ddc4c32cd2bd9b8d98095beddee7ec4d /sql | |
parent | e1e43631f86828b90e4f80eb1b76501676ff565f (diff) | |
parent | f8cd565dd70c64337ed3015cc63f5ec5d1b5e203 (diff) | |
download | mariadb-git-93c9359280d6106b26c85fd312977bad2c4ada98.tar.gz |
Manual up-merge (16311231 backport)
Diffstat (limited to 'sql')
-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; } } } |