summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorunknown <peter@mysql.com>2002-10-03 22:48:53 +0400
committerunknown <peter@mysql.com>2002-10-03 22:48:53 +0400
commit748191fd807d6f380b48b9331a8d8cf333d2bb45 (patch)
treeb9522531a456b10dced6edbc21b35f15c338869c /sql/item_strfunc.h
parente607221a3cd778131cc9250108473819c9b8c8a0 (diff)
parenta370f86622f98fa33e7085878522ff181e7effba (diff)
downloadmariadb-git-748191fd807d6f380b48b9331a8d8cf333d2bb45.tar.gz
Merge mysql.com:/home/pz/mysql/mysql-4.1-root
into mysql.com:/home/pz/mysql/mysql-4.1 BitKeeper/etc/logging_ok: auto-union sql/item_strfunc.cc: Auto merged sql/item_strfunc.h: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r--sql/item_strfunc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h
index b98be7829fb..d416f09d458 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -243,11 +243,11 @@ public:
class Item_func_password :public Item_str_func
{
- char tmp_value[17];
+ char tmp_value[64]; /* This should be enough for new password format */
public:
Item_func_password(Item *a) :Item_str_func(a) {}
String *val_str(String *);
- void fix_length_and_dec() { max_length = 16; }
+ void fix_length_and_dec() { max_length = get_password_length(); }
const char *func_name() const { return "password"; }
};