From a88ca8f548a2e7d2ce4f992620bff508d2b9236d Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 29 Jan 2005 22:56:00 +0200 Subject: [PATCH] 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 --- mysys/my_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysys/my_handler.c b/mysys/my_handler.c index 00f25924e69..df1e9e55e0a 100644 --- a/mysys/my_handler.c +++ b/mysys/my_handler.c @@ -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++) {