diff options
author | unknown <serg@serg.mylan> | 2004-02-13 15:27:58 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-02-13 15:27:58 +0100 |
commit | e05c2a90da83787ed5f3e26fdada9040ec00ab27 (patch) | |
tree | 0ae12f7ce7a07e4d62357cf300d26a6b13876d72 /sql/sql_string.cc | |
parent | 1515c12191bcb50c49512475a72c04a47c963a07 (diff) | |
download | mariadb-git-e05c2a90da83787ed5f3e26fdada9040ec00ab27.tar.gz |
small optimization
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r-- | sql/sql_string.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc index 42e700b27aa..debe42046f0 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -437,7 +437,7 @@ bool String::append(const char *s,uint32 arg_length, CHARSET_INFO *cs) if (!arg_length) // Default argument if (!(arg_length= (uint32) strlen(s))) return FALSE; - if (str_charset->mbmaxlen > 1) + if (cs != str_charset && str_charset->mbmaxlen > 1) { uint32 add_length=arg_length * str_charset->mbmaxlen; if (realloc(str_length+ add_length)) |