summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-10-17 23:57:26 +0300
committerunknown <monty@donna.mysql.com>2000-10-17 23:57:26 +0300
commitae687f81506b4021fe6f0b6743d749be1bf43456 (patch)
treeeb0ea06c5f8bc368cbf64d32b74a6249d38c9530 /sql/item_cmpfunc.cc
parent2ad8320b97ec7e4068a02e91169f4851e9d3f10f (diff)
downloadmariadb-git-ae687f81506b4021fe6f0b6743d749be1bf43456.tar.gz
Fixed benchmarks and compare of NULL with <>
Docs/manual.texi: Update for release include/config-win.h: Fixed typo sql-bench/test-insert.sh: Fixed that the new tests works with --fast sql/item_cmpfunc.cc: Fix of NULL values with '<>'
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 0a75998ffe1..a2686fd43d9 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -185,7 +185,7 @@ longlong Item_func_equal::val_int()
longlong Item_func_ne::val_int()
{
int value=(this->*cmp_func)();
- return value != 0 ? 1 : 0;
+ return value != 0 && !null_value ? 1 : 0;
}