summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-05-07 19:08:56 +0300
committerunknown <monty@hundin.mysql.fi>2002-05-07 19:08:56 +0300
commitdaafa8db5049da5a8e3c51edb7cb5b7f36dbc73f (patch)
tree998601644441d26cc8a548d4f2e086978a15feea /sql/item_cmpfunc.cc
parent6c6ae10e7532e3630396160ccb41f79ce8ce001c (diff)
downloadmariadb-git-daafa8db5049da5a8e3c51edb7cb5b7f36dbc73f.tar.gz
Fix for ISNULL()
Docs/manual.texi: Chagnelog mysql-test/r/join.result: New tests for IS NULL mysql-test/t/join.test: New tests for IS NULL
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 0c0eef37841..73821f8d826 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -1211,7 +1211,7 @@ longlong Item_func_isnull::val_int()
This has to be here because of the test in update_used_tables().
*/
if (!used_tables_cache)
- return 0;
+ return cached_value;
(void) args[0]->val();
return (args[0]->null_value) ? 1 : 0;
}