summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.h
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-02-17 02:14:37 +0200
committermonty@mashka.mysql.fi <>2003-02-17 02:14:37 +0200
commit6051b2f9988f1e317be41e49c64718cc610c1260 (patch)
tree49ba5df63376ec1ba88e54e1446b29a777bba1a9 /sql/item_cmpfunc.h
parent153cefc61b15e182157ab7da9a14ab014c4f95de (diff)
downloadmariadb-git-6051b2f9988f1e317be41e49c64718cc610c1260.tar.gz
Fixed multi-table-delete for InnoDB tables
Novell patches
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r--sql/item_cmpfunc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h
index 5efda9ce88c..f7ade97940c 100644
--- a/sql/item_cmpfunc.h
+++ b/sql/item_cmpfunc.h
@@ -475,8 +475,7 @@ public:
if (!(used_tables_cache=args[0]->used_tables()))
{
/* Remember if the value is always NULL or never NULL */
- args[0]->val();
- cached_value= args[0]->null_value ? (longlong) 1 : (longlong) 0;
+ cached_value= (longlong) args[0]->is_null();
}
}
}