summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-08-22 00:18:32 +0300
committermonty@donna.mysql.com <>2000-08-22 00:18:32 +0300
commitf0952ce3e1e4a315efb62b09038bcd933b51d5a1 (patch)
treec129c5ccdb3df8c87c28c6a51baac6e208294313 /sql/handler.cc
parent48ee575ebcae86c55687b41e6af9c48c75f55d77 (diff)
downloadmariadb-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.cc2
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);