diff options
author | monty@donna.mysql.com <> | 2000-08-22 00:18:32 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-08-22 00:18:32 +0300 |
commit | f0952ce3e1e4a315efb62b09038bcd933b51d5a1 (patch) | |
tree | c129c5ccdb3df8c87c28c6a51baac6e208294313 /sql/handler.cc | |
parent | 48ee575ebcae86c55687b41e6af9c48c75f55d77 (diff) | |
download | mariadb-git-f0952ce3e1e4a315efb62b09038bcd933b51d5a1.tar.gz |
FLUSH TABLE table_list
Fixes for RENAME TABLE
Portability fixes
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 817e3fa79dc..592861e176b 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -462,7 +462,7 @@ void handler::print_error(int error, myf errflag) char key[MAX_KEY_LENGTH]; String str(key,sizeof(key)); key_unpack(&str,table,(uint) key_nr); - uint max_length=MYSQL_ERRMSG_SIZE-strlen(ER(ER_DUP_ENTRY)); + uint max_length=MYSQL_ERRMSG_SIZE-(uint) strlen(ER(ER_DUP_ENTRY)); if (str.length() >= max_length) { str.length(max_length-4); |