diff options
author | ramil/ram@mysql.com/myoffice.izhnet.ru <> | 2006-10-13 19:05:54 +0500 |
---|---|---|
committer | ramil/ram@mysql.com/myoffice.izhnet.ru <> | 2006-10-13 19:05:54 +0500 |
commit | 31402835d4cef73dbe720f68dd79af0d6b68d1e8 (patch) | |
tree | 0170e1ae102bd9bae909c42003f5bb013fb6b058 /sql/item_strfunc.cc | |
parent | 2db82814c4654b7e1c83378a01f66c6f97cee262 (diff) | |
download | mariadb-git-31402835d4cef73dbe720f68dd79af0d6b68d1e8.tar.gz |
Fix for bug #23254: COMPRESS(NULL) makes all futher COMPRESS() calls on same Item return NULL
We don't set null_value to 0 in the Item_func_compress::val_str() for
not-NULL results.
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index 98888226e58..f7408cb5e9f 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -2838,6 +2838,7 @@ String *Item_func_compress::val_str(String *str) null_value= 1; return 0; } + null_value= 0; if (res->is_empty()) return res; /* |