summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorholyfoot/hf@hfmain.(none) <>2007-03-08 19:08:28 +0400
committerholyfoot/hf@hfmain.(none) <>2007-03-08 19:08:28 +0400
commit75be7cd1aebb833309d0224761558eb1e32b6925 (patch)
tree159b4f318828e8537baa6d0b846728e8f2a0e84b /sql/item_strfunc.h
parent2baf35b4fab1cd1c185b7b98645eb76ed88d9f73 (diff)
parent999c1cdcc1a6c82b69ea75d6661f75ed55f405f1 (diff)
downloadmariadb-git-75be7cd1aebb833309d0224761558eb1e32b6925.tar.gz
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index ae11e001551..628b51a70d7 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -601,7 +601,11 @@ class Item_func_unhex :public Item_str_func
{
String tmp_value;
public:
- Item_func_unhex(Item *a) :Item_str_func(a) {}
+ Item_func_unhex(Item *a) :Item_str_func(a)
+ {
+ /* there can be bad hex strings */
+ maybe_null= 1;
+ }
const char *func_name() const { return "unhex"; }
String *val_str(String *);
void fix_length_and_dec()