1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Patches to fix problems on Windows

sql/log_event.cc:
  Adding cast since byte is unsigned char on Windows
sql/rpl_utility.cc:
  Adding missing return statement.
This commit is contained in:
unknown
2006-09-08 10:20:14 +02:00
parent f17a35a948
commit de6b79933c
2 changed files with 3 additions and 1 deletions

View File

@ -5369,7 +5369,7 @@ unpack_row(RELAY_LOG_INFO *rli,
if (master_reclength) if (master_reclength)
{ {
if (*field_ptr) if (*field_ptr)
*master_reclength = (*field_ptr)->ptr - table->record[0]; *master_reclength = (*field_ptr)->ptr - (char*) table->record[0];
else else
*master_reclength = table->s->reclength; *master_reclength = table->s->reclength;
} }

View File

@ -96,6 +96,8 @@ field_length_from_packed(enum_field_types const field_type,
length= ~0UL; // NYI length= ~0UL; // NYI
break; break;
} }
return length;
} }
/********************************************************************* /*********************************************************************