diff options
author | monty@mashka.mysql.fi <> | 2002-12-11 12:59:55 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-12-11 12:59:55 +0200 |
commit | 53ac261312965b2baf35a8ef66ccdad35af43ea8 (patch) | |
tree | 0a4f351d282a58c5c13fde6ecc0a5a9e829e4445 /libmysql | |
parent | b737eb89a7bfb1bc7ad45ef384433874af4e2942 (diff) | |
download | mariadb-git-53ac261312965b2baf35a8ef66ccdad35af43ea8.tar.gz |
Added back -max to server name if we are using InnoDB.
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 4 |
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)); |