summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-12-11 12:59:55 +0200
committermonty@mashka.mysql.fi <>2002-12-11 12:59:55 +0200
commit53ac261312965b2baf35a8ef66ccdad35af43ea8 (patch)
tree0a4f351d282a58c5c13fde6ecc0a5a9e829e4445 /libmysql
parentb737eb89a7bfb1bc7ad45ef384433874af4e2942 (diff)
downloadmariadb-git-53ac261312965b2baf35a8ef66ccdad35af43ea8.tar.gz
Added back -max to server name if we are using InnoDB.
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index 9db1e1c9ab9..755d85dd04a 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -939,7 +939,7 @@ static MYSQL_DATA *read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
else
{
cur->data[field] = to;
- if (len > end_to - to)
+ if (len > (ulong) (end_to - to))
{
free_rows(result);
net->last_errno=CR_UNKNOWN_ERROR;
@@ -998,7 +998,7 @@ read_one_row(MYSQL *mysql,uint fields,MYSQL_ROW row, ulong *lengths)
}
else
{
- if (len > end_pos - pos)
+ if (len > (ulong) (end_pos - pos))
{
mysql->net.last_errno=CR_UNKNOWN_ERROR;
strmov(mysql->net.last_error,ER(mysql->net.last_errno));