diff options
author | jimw@mysql.com <> | 2005-01-28 17:18:35 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-01-28 17:18:35 -0800 |
commit | 691cd6c50dde4d583c2bfd7cfc16cb1a80ed5782 (patch) | |
tree | b8a1d55380d40a9795bcd517a40e07dc79b2460d /strings | |
parent | bcf1cb0f234719bf225458b84f42ce0069e4405f (diff) | |
download | mariadb-git-691cd6c50dde4d583c2bfd7cfc16cb1a80ed5782.tar.gz |
Fix error in string comparisons with CHAR(31) against the space-padding
of strings of unequal length. (Bug #8134)
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-simple.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index 5bfa9e52595..4dc6a1be27b 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -153,7 +153,7 @@ int my_strnncollsp_simple(CHARSET_INFO * cs, const uchar *a, uint a_length, /* put shorter key in s */ 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++) { |