summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-12-21 10:45:06 +0200
committerunknown <monty@mashka.mysql.fi>2002-12-21 10:45:06 +0200
commit5f1b9717c53f19ef4f7a5206f59a7678a025dbe2 (patch)
tree94452628cf4dda213363cf02d5acc3a5ae3356fb
parent35f6e920c5a0a991bbaae0107405230985cb7c81 (diff)
downloadmariadb-git-5f1b9717c53f19ef4f7a5206f59a7678a025dbe2.tar.gz
Optimization of CASE bug fix
-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 0d10b17ad87..c3381eb76ea 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -685,10 +685,9 @@ String *Item_func_case::val_str(String *str)
null_value=1;
return 0;
}
+ null_value= 0;
if (!(res=item->val_str(str)))
- null_value=1;
- else
- null_value=item->null_value;
+ null_value= 1;
return res;
}