diff options
author | Martin Hansson <martin.hansson@oracle.com> | 2011-01-13 09:07:21 +0100 |
---|---|---|
committer | Martin Hansson <martin.hansson@oracle.com> | 2011-01-13 09:07:21 +0100 |
commit | ef6b98ee5a2d4d606e519535f70426d3db8d524a (patch) | |
tree | d1db205d8cade9fce4f01b09cf0b70cfeb9a6f31 /sql/item_strfunc.h | |
parent | df3b2340a84edd27cadb0b7f3b70c0c5f82cc0bd (diff) | |
parent | 716b64cdb050ff9a22457990f336ef20a7b3663a (diff) | |
download | mariadb-git-ef6b98ee5a2d4d606e519535f70426d3db8d524a.tar.gz |
Merge of fix for Bug#58165.
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index d76e139883c..626926213e6 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -27,6 +27,16 @@ class MY_LOCALE; class Item_str_func :public Item_func { +protected: + /** + Sets the result value of the function an empty string, using the current + character set. No memory is allocated. + @retval A pointer to the str_value member. + */ + String *make_empty_result() { + str_value.set("", 0, collation.collation); + return &str_value; + } public: Item_str_func() :Item_func() { decimals=NOT_FIXED_DEC; } Item_str_func(Item *a) :Item_func(a) {decimals=NOT_FIXED_DEC; } |