summaryrefslogtreecommitdiff
path: root/sql/item_cmpfunc.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2010-01-13 12:28:42 +0200
committerGeorgi Kodinov <joro@sun.com>2010-01-13 12:28:42 +0200
commit6e72f4171fbc157885672ab45152564cdd3d1bfa (patch)
treecbdb25a3a54a2e4391cb90fb8e08590f44d099c8 /sql/item_cmpfunc.cc
parent4dc7be62a997a0176e300878d4b5e93865606029 (diff)
parent23a3b911409ee7c27937a663ed7a08e13c0adbed (diff)
downloadmariadb-git-6e72f4171fbc157885672ab45152564cdd3d1bfa.tar.gz
merge 5.1-main to 5.1-bugteam
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 d5a61ea4050..1d33e369af0 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -895,9 +895,9 @@ int Arg_comparator::set_cmp_func(Item_result_field *owner_arg,
ulonglong const_value= (ulonglong)-1;
thd= current_thd;
owner= owner_arg;
+ set_null= set_null && owner_arg;
a= a1;
b= a2;
- owner= owner_arg;
thd= current_thd;
if ((cmp_type= can_compare_as_dates(*a, *b, &const_value)))