summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2005-02-23 18:47:00 +0300
committerunknown <gluh@gluh.mysql.r18.ru>2005-02-23 18:47:00 +0300
commit272f78b533f98cd611d0be62538399e6f0839355 (patch)
treefe8b20c9ef55e48b1aad0d367613824834c27164 /sql
parent0de9a3dd14b286d3ef90db50c6f6a1f824caf2bd (diff)
parentf443992e66f6eb32a0b841a3005f44f5ad77faff (diff)
downloadmariadb-git-272f78b533f98cd611d0be62538399e6f0839355.tar.gz
Merge gluh.mysql.r18.ru:/home/gluh/MySQL-MERGE/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/MySQL-MERGE/mysql-5.0 mysql-test/r/func_str.result: Auto merged mysql-test/t/func_str.test: Auto merged sql/item_strfunc.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/item_strfunc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc
index 9f2da0f7fa1..536ee46f4db 100644
--- a/sql/item_strfunc.cc
+++ b/sql/item_strfunc.cc
@@ -1874,6 +1874,7 @@ String *Item_func_char::val_str(String *str)
{
int32 num=(int32) args[i]->val_int();
if (!args[i]->null_value)
+ {
#ifdef USE_MB
if (use_mb(collation.collation))
{
@@ -1889,6 +1890,7 @@ b1: str->append((char)(num>>8));
}
#endif
str->append((char)num);
+ }
}
str->set_charset(collation.collation);
str->realloc(str->length()); // Add end 0 (for Purify)