summaryrefslogtreecommitdiff
path: root/strings/CHARSET_INFO.txt
diff options
context:
space:
mode:
authorbar@mysql.com/bar.intranet.mysql.r18.ru <>2006-07-20 15:52:48 +0500
committerbar@mysql.com/bar.intranet.mysql.r18.ru <>2006-07-20 15:52:48 +0500
commit2a664ff6c200a7bfe5feee7aec7b1650dab8ccff (patch)
treecf338a30b3f30a560b5848d02c779d417afbbd14 /strings/CHARSET_INFO.txt
parent2eacb14d2eb1ec9f5e9ca36a19f37980fdd9ffa7 (diff)
downloadmariadb-git-2a664ff6c200a7bfe5feee7aec7b1650dab8ccff.tar.gz
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.
Diffstat (limited to 'strings/CHARSET_INFO.txt')
-rw-r--r--strings/CHARSET_INFO.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/strings/CHARSET_INFO.txt b/strings/CHARSET_INFO.txt
index f7a10f95880..3fd262c6f12 100644
--- a/strings/CHARSET_INFO.txt
+++ b/strings/CHARSET_INFO.txt
@@ -33,7 +33,7 @@ typedef struct charset_info_st
uint strxfrm_multiply;
uint mbminlen;
uint mbmaxlen;
- char max_sort_char; /* For LIKE optimization */
+ uint16 max_sort_char; /* For LIKE optimization */
MY_CHARSET_HANDLER *cset;
MY_COLLATION_HANDLER *coll;
@@ -134,7 +134,15 @@ Misc fields
mbmaxlen - maximum multibyte sequence length.
1 for 8bit charsets. Can be also 2 or 3.
-
+ max_sort_char - for LIKE range
+ in case of 8bit character sets - native code
+ of maximum character (max_str pad byte);
+ in case of UTF8 and UCS2 - Unicode code of the maximum
+ possible character (usually U+FFFF). This code is
+ converted to multibyte representation (usually 0xEFBFBF)
+ and then used as a pad sequence for max_str.
+ in case of other multibyte character sets -
+ max_str pad byte (usually 0xFF).
MY_CHARSET_HANDLER
==================