1
0
mirror of https://github.com/MariaDB/server.git synced 2025-06-12 01:53:02 +03:00

Added back -max to server name if we are using InnoDB.

libmysql/libmysql.c:
  Compatibility fix
sql/mysqld.cc:
  Added back -max if we are using InnoDB.
  (This should not be done in the 3.23 version)
This commit is contained in:
unknown
2002-12-11 12:59:55 +02:00
parent 2076f2b44c
commit 49162e0e54
2 changed files with 5 additions and 5 deletions

View File

@ -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));