summaryrefslogtreecommitdiff
path: root/sql/item_strfunc.h
diff options
context:
space:
mode:
authorunknown <peter@mysql.com>2002-10-02 23:43:27 +0400
committerunknown <peter@mysql.com>2002-10-02 23:43:27 +0400
commit1f443c95d993a4470d23aecb3df15da32adcffa4 (patch)
tree72f88262ca342ba853ecd1179724def3a07d8a61 /sql/item_strfunc.h
parent0d2b6552b14292648afafe7dcd73df4b7975ba65 (diff)
downloadmariadb-git-1f443c95d993a4470d23aecb3df15da32adcffa4.tar.gz
Changeset to deal with 4.1 -> 4.0 merge
include/mysql_com.h: Partial changes for new secure connection handing required to pull 4.0 -> 4.1 merge sql/item_strfunc.cc: Handling of dynamic possible length for password sql/item_strfunc.h: Larger buffer for password sql/mysqld.cc: Added option to force old password format sql/password.c: Begin implementing new hashing BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
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 af94e387717..90b843f5fd7 100644
--- a/sql/item_strfunc.h
+++ b/sql/item_strfunc.h
@@ -224,11 +224,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"; }
};