summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorram@gw.mysql.r18.ru <>2004-12-14 16:26:10 +0400
committerram@gw.mysql.r18.ru <>2004-12-14 16:26:10 +0400
commit7c31ea4d839cc351eea24b4ced1a44731792af29 (patch)
tree721c4d7df145ffddd146b49599780e5b2c0b1c5b /sql/item.h
parent5c5d51c2d6fa1643130063d530c1e7b764754aff (diff)
parent4fa867494dec481ed38ea3a8cce529c5f02783bb (diff)
downloadmariadb-git-7c31ea4d839cc351eea24b4ced1a44731792af29.tar.gz
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into gw.mysql.r18.ru:/usr/home/ram/work/4.1
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index fb649547fa2..237a8f7efac 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -765,7 +765,7 @@ class Item_empty_string :public Item_string
public:
Item_empty_string(const char *header,uint length, CHARSET_INFO *cs= NULL) :
Item_string("",0, cs ? cs : &my_charset_bin)
- { name=(char*) header; max_length=length;}
+ { name=(char*) header; max_length= cs ? length * cs->mbmaxlen : length; }
void make_field(Send_field *field);
};