mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
Fix for a "table is full" bug in multi-table updates (Bug #7788)
mysys/my_handler.c: Fix for a bug in multi table updates, when offset of one table is 5 bytes or more. This occured because in that case binary(5) indexed column is space packed, so it was hit by this bug in the function for binary comparison. Bug #7788
This commit is contained in:
parent
25c0775b16
commit
a88ca8f548
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ static int compare_bin(uchar *a, uint a_length, uchar *b, uint b_length,
|
|||
/* put shorter key in a */
|
||||
a_length= b_length;
|
||||
a= b;
|
||||
swap= -1; /* swap sign of result */
|
||||
swap= -1 ^ 1; /* swap sign of result */
|
||||
}
|
||||
for (end= a + a_length-length; a < end ; a++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue