summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2003-03-10 20:54:18 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2003-03-10 20:54:18 +0200
commitbbc8f836c0400f361458bffd42d71ea2177a9e18 (patch)
tree2d9fa4d526063ce45cfbf193b270d14ddedf4fea /sql/item_cmpfunc.cc
parent462a72b80246c09304f140675f6dd80cb3a20826 (diff)
downloadmariadb-git-bbc8f836c0400f361458bffd42d71ea2177a9e18.tar.gz
Fix for a bug with ROW(..) <=> ROW(...)
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r--sql/item_cmpfunc.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index ec3c7f22556..40640ccee9c 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -266,8 +266,8 @@ int Arg_comparator::compare_e_row()
uint n= (*a)->cols();
for (uint i= 0; i<n; i++)
{
- if ((res= comparators[i].compare()))
- return 1;
+ if ((res= !comparators[i].compare()))
+ return 0;
}
return 1;
}
@@ -352,7 +352,6 @@ void Item_func_equal::fix_length_and_dec()
{
Item_bool_func2::fix_length_and_dec();
maybe_null=null_value=0;
- set_cmp_func();
}
longlong Item_func_equal::val_int()