summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2005-01-29 22:56:00 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2005-01-29 22:56:00 +0200
commita88ca8f548a2e7d2ce4f992620bff508d2b9236d (patch)
treec06734720d3c39b344699134e6edd705be61ddc0 /mysys
parent25c0775b16ff969cb56cbf104e8fe7ab632b5bd2 (diff)
downloadmariadb-git-a88ca8f548a2e7d2ce4f992620bff508d2b9236d.tar.gz
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
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_handler.c2
1 files changed, 1 insertions, 1 deletions
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++)
{