diff options
author | unknown <bar@mysql.com> | 2006-03-20 16:28:25 +0400 |
---|---|---|
committer | unknown <bar@mysql.com> | 2006-03-20 16:28:25 +0400 |
commit | 83bc8c4e389305290cae4b9ed7fc89f9a348eb44 (patch) | |
tree | 8484a9d1a61ca965cfb3312a5f5e4ba4427c9eef /strings | |
parent | 367442f754a97d87077c99bc5805b41da5ac7119 (diff) | |
download | mariadb-git-83bc8c4e389305290cae4b9ed7fc89f9a348eb44.tar.gz |
Bug#17374: select ... like 'A%' operator fails to find value on columuns with key
Fixed that LIKE worked case insensitively for latin2_czech_cs,
which was wrong for a case sensitive collation.
include/m_ctype.h:
Making my_wildcmp_bin public instead of static
strings/ctype-bin.c:
Making my_wildcmp_bin public instead of static
strings/ctype-czech.c:
Use my_wildcmp_bin instead of case insensitive my_wildcmp_8bit
mysql-test/include/have_latin2_ch.inc:
New BitKeeper file ``mysql-test/include/have_latin2_ch.inc''
mysql-test/r/ctype_latin2_ch.result:
New BitKeeper file ``mysql-test/r/ctype_latin2_ch.result''
mysql-test/r/have_latin2_ch.require:
New BitKeeper file ``mysql-test/r/have_latin2_ch.require''
mysql-test/t/ctype_latin2_ch.test:
New BitKeeper file ``mysql-test/t/ctype_latin2_ch.test''
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-bin.c | 8 | ||||
-rw-r--r-- | strings/ctype-czech.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/strings/ctype-bin.c b/strings/ctype-bin.c index 1ac79ac9ca0..dc078763341 100644 --- a/strings/ctype-bin.c +++ b/strings/ctype-bin.c @@ -269,10 +269,10 @@ void my_hash_sort_bin(CHARSET_INFO *cs __attribute__((unused)), #define INC_PTR(cs,A,B) (A)++ -static int my_wildcmp_bin(CHARSET_INFO *cs, - const char *str,const char *str_end, - const char *wildstr,const char *wildend, - int escape, int w_one, int w_many) +int my_wildcmp_bin(CHARSET_INFO *cs, + const char *str,const char *str_end, + const char *wildstr,const char *wildend, + int escape, int w_one, int w_many) { int result= -1; /* Not found, using wildcards */ diff --git a/strings/ctype-czech.c b/strings/ctype-czech.c index 4bd2fbddbc4..2ff5500090a 100644 --- a/strings/ctype-czech.c +++ b/strings/ctype-czech.c @@ -583,7 +583,7 @@ static MY_COLLATION_HANDLER my_collation_latin2_czech_ci_handler = my_strnncollsp_czech, my_strnxfrm_czech, my_like_range_czech, - my_wildcmp_8bit, + my_wildcmp_bin, my_strcasecmp_8bit, my_instr_simple, my_hash_sort_simple, |