diff options
author | Chad MILLER <chad@mysql.com> | 2008-08-15 16:42:29 -0400 |
---|---|---|
committer | Chad MILLER <chad@mysql.com> | 2008-08-15 16:42:29 -0400 |
commit | 7401c1a50270e25da2401c631a07ecfcda357b1e (patch) | |
tree | 94de722ccdcd9bca5f90f9cc56c63b9d4079f262 /sql/item.h | |
parent | 996f2808064fc5704ca981920d823ac3dea47cdb (diff) | |
parent | 63255c04dbb78d9616a146d50161d774bd4c5e53 (diff) | |
download | mariadb-git-7401c1a50270e25da2401c631a07ecfcda357b1e.tar.gz |
Merge from 5.0-bugteam.
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h index 2c9af80195b..be343e25d3f 100644 --- a/sql/item.h +++ b/sql/item.h @@ -2046,7 +2046,7 @@ class Item_empty_string :public Item_partition_func_safe_string public: Item_empty_string(const char *header,uint length, CHARSET_INFO *cs= NULL) : Item_partition_func_safe_string("",0, cs ? cs : &my_charset_utf8_general_ci) - { name=(char*) header; max_length= cs ? length * cs->mbmaxlen : length; } + { name=(char*) header; max_length= length * collation.collation->mbmaxlen; } void make_field(Send_field *field); }; |