diff options
author | Alexander Barkov <bar@mariadb.org> | 2015-08-14 18:34:41 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2015-08-14 18:34:41 +0400 |
commit | 78b80cb6baa3f9c4e58355888e8c6defab186440 (patch) | |
tree | 70eb8bf0de64d49f7bb27cd89b54070ce9564588 /strings/ctype-bin.c | |
parent | bfb6ea02321f963c2b5f5beb333283585d3d1be3 (diff) | |
download | mariadb-git-78b80cb6baa3f9c4e58355888e8c6defab186440.tar.gz |
Adding MY_CHARSET_HANDLER::native_to_mb().
This is a pre-requisite patch for:
- MDEV-8433 Make field<'broken-string' use indexes
- MDEV-8625 Bad result set with ignorable characters when using a prefix key
- MDEV-8626 Bad result set with contractions when using a prefix key
Diffstat (limited to 'strings/ctype-bin.c')
-rw-r--r-- | strings/ctype-bin.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/strings/ctype-bin.c b/strings/ctype-bin.c index 95f31038ee6..4d42973f69f 100644 --- a/strings/ctype-bin.c +++ b/strings/ctype-bin.c @@ -256,10 +256,8 @@ static int my_mb_wc_bin(CHARSET_INFO *cs __attribute__((unused)), } -static int my_wc_mb_bin(CHARSET_INFO *cs __attribute__((unused)), - my_wc_t wc, - uchar *s, - uchar *e __attribute__((unused))) +int my_wc_mb_bin(CHARSET_INFO *cs __attribute__((unused)), + my_wc_t wc, uchar *s, uchar *e) { if (s >= e) return MY_CS_TOOSMALL; @@ -552,6 +550,7 @@ static MY_CHARSET_HANDLER my_charset_handler= my_charlen_8bit, my_well_formed_char_length_8bit, my_copy_8bit, + my_wc_mb_bin, }; |