summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-09-08 22:57:27 +0200
committerserg@serg.mylan <>2005-09-08 22:57:27 +0200
commita7f2179c29b6a168c853b6fe0dece13c963bc288 (patch)
tree3013635bda53ace5b5b32b221d26d1a0f62b76b9 /sql/item_cmpfunc.h
parent5fa2cea16f0f58bc89deee8b7346d5e1399b97d9 (diff)
downloadmariadb-git-a7f2179c29b6a168c853b6fe0dece13c963bc288.tar.gz
BUG#12695: Item_func_isnull::update_used_tables did not update const_item_cache
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 47884f6064e..bb4759918ff 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -805,7 +805,7 @@ public:
else
{
args[0]->update_used_tables();
- if (!(used_tables_cache=args[0]->used_tables()))
+ if ((const_item_cache= !(used_tables_cache= args[0]->used_tables())))
{
/* Remember if the value is always NULL or never NULL */
cached_value= (longlong) args[0]->is_null();