From d2f7fe35584a75d5bc3a9a6950cc15d264e31241 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 Jul 2006 15:52:48 +0500 Subject: Bug#20471 LIKE search fails with indexed utf8 char column The main problem was already fixed by Igor under terms of 16674. Adding some additional minor fixes and tests. include/m_ctype.h: Adding reference to CHARSET_INFO.txt mysql-test/r/ctype_utf8.result: Adding test case mysql-test/t/ctype_utf8.test: Adding test case strings/CHARSET_INFO.txt: Adding comment about max_sort_char strings/ctype-mb.c: Restiring that non-Unicode character sets use 0xFF as pad character for max_str. Only Unicode character sets use wc_mb. strings/ctype-utf8.c: Fixed that max_sort_char for UTF8 from U+00FF to U+FFFF. --- include/m_ctype.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/m_ctype.h b/include/m_ctype.h index cd1dac9dde8..b9ed39414bb 100644 --- a/include/m_ctype.h +++ b/include/m_ctype.h @@ -108,6 +108,8 @@ enum my_lex_states struct charset_info_st; + +/* See strings/CHARSET_INFO.txt about information on this structure */ typedef struct my_collation_handler_st { my_bool (*init)(struct charset_info_st *, void *(*alloc)(uint)); @@ -147,6 +149,7 @@ extern MY_COLLATION_HANDLER my_collation_8bit_simple_ci_handler; extern MY_COLLATION_HANDLER my_collation_ucs2_uca_handler; +/* See strings/CHARSET_INFO.txt about information on this structure */ typedef struct my_charset_handler_st { my_bool (*init)(struct charset_info_st *, void *(*alloc)(uint)); @@ -204,6 +207,7 @@ extern MY_CHARSET_HANDLER my_charset_8bit_handler; extern MY_CHARSET_HANDLER my_charset_ucs2_handler; +/* See strings/CHARSET_INFO.txt about information on this structure */ typedef struct charset_info_st { uint number; -- cgit v1.2.1 From 342dea0e3525e7944262f5cee330043d4e98aa5b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 14 Sep 2006 10:05:07 +0500 Subject: Better comment text (thanks to SergeyP for suggestions made for the b#20471 patch) --- include/m_ctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_ctype.h b/include/m_ctype.h index b9ed39414bb..09ebc781c8d 100644 --- a/include/m_ctype.h +++ b/include/m_ctype.h @@ -109,7 +109,7 @@ enum my_lex_states struct charset_info_st; -/* See strings/CHARSET_INFO.txt about information on this structure */ +/* See strings/CHARSET_INFO.txt for information about this structure */ typedef struct my_collation_handler_st { my_bool (*init)(struct charset_info_st *, void *(*alloc)(uint)); -- cgit v1.2.1