mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include "ctype-unidata.h"
|
||||
|
||||
|
||||
/* Definitions for strcoll.ic */
|
||||
/* Definitions for strcoll.inl */
|
||||
#define IS_MB1_CHAR(x) ((uchar) (x) < 0x80)
|
||||
#define IS_MB1_MBHEAD_UNUSED_GAP(x) ((uchar) (x) < 0xC2)
|
||||
#define IS_MB2_CHAR(x,y) IS_UTF8MB2_STEP2(x,y)
|
||||
@@ -5211,7 +5211,7 @@ int my_charlen_utf8(CHARSET_INFO *cs __attribute__((unused)),
|
||||
#define MY_FUNCTION_NAME(x) my_ ## x ## _utf8
|
||||
#define CHARLEN(cs,str,end) my_charlen_utf8(cs,str,end)
|
||||
#define DEFINE_WELL_FORMED_CHAR_LENGTH_USING_CHARLEN
|
||||
#include "ctype-mb.ic"
|
||||
#include "ctype-mb.inl"
|
||||
#undef MY_FUNCTION_NAME
|
||||
#undef CHARLEN
|
||||
#undef DEFINE_WELL_FORMED_CHAR_LENGTH_USING_CHARLEN
|
||||
@@ -5252,7 +5252,7 @@ static inline int my_weight_mb3_utf8_general_ci(uchar b0, uchar b1, uchar b2)
|
||||
#define WEIGHT_MB1(x) my_weight_mb1_utf8_general_ci(x)
|
||||
#define WEIGHT_MB2(x,y) my_weight_mb2_utf8_general_ci(x,y)
|
||||
#define WEIGHT_MB3(x,y,z) my_weight_mb3_utf8_general_ci(x,y,z)
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
#define DEFINE_STRNNCOLLSP_NOPAD
|
||||
@@ -5261,7 +5261,7 @@ static inline int my_weight_mb3_utf8_general_ci(uchar b0, uchar b1, uchar b2)
|
||||
#define WEIGHT_MB1(x) my_weight_mb1_utf8_general_ci(x)
|
||||
#define WEIGHT_MB2(x,y) my_weight_mb2_utf8_general_ci(x,y)
|
||||
#define WEIGHT_MB3(x,y,z) my_weight_mb3_utf8_general_ci(x,y,z)
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
static inline int my_weight_mb1_utf8_general_mysql500_ci(uchar b)
|
||||
@@ -5298,7 +5298,7 @@ my_weight_mb3_utf8_general_mysql500_ci(uchar b0, uchar b1, uchar b2)
|
||||
#define WEIGHT_MB1(x) my_weight_mb1_utf8_general_mysql500_ci(x)
|
||||
#define WEIGHT_MB2(x,y) my_weight_mb2_utf8_general_mysql500_ci(x,y)
|
||||
#define WEIGHT_MB3(x,y,z) my_weight_mb3_utf8_general_mysql500_ci(x,y,z)
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
#define MY_FUNCTION_NAME(x) my_ ## x ## _utf8_bin
|
||||
@@ -5309,7 +5309,7 @@ my_weight_mb3_utf8_general_mysql500_ci(uchar b0, uchar b1, uchar b2)
|
||||
#define WEIGHT_MB1(x) ((int) (uchar) (x))
|
||||
#define WEIGHT_MB2(x,y) ((int) UTF8MB2_CODE(x,y))
|
||||
#define WEIGHT_MB3(x,y,z) ((int) UTF8MB3_CODE(x,y,z))
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
#define DEFINE_STRNNCOLLSP_NOPAD
|
||||
@@ -5318,7 +5318,7 @@ my_weight_mb3_utf8_general_mysql500_ci(uchar b0, uchar b1, uchar b2)
|
||||
#define WEIGHT_MB1(x) ((int) (uchar) (x))
|
||||
#define WEIGHT_MB2(x,y) ((int) UTF8MB2_CODE(x,y))
|
||||
#define WEIGHT_MB3(x,y,z) ((int) UTF8MB3_CODE(x,y,z))
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
/*
|
||||
TODO-10.2: join this with pad_max_char() in ctype-mb.c
|
||||
@@ -7035,7 +7035,7 @@ my_charlen_filename(CHARSET_INFO *cs, const uchar *str, const uchar *end)
|
||||
#define MY_FUNCTION_NAME(x) my_ ## x ## _filename
|
||||
#define CHARLEN(cs,str,end) my_charlen_filename(cs,str,end)
|
||||
#define DEFINE_WELL_FORMED_CHAR_LENGTH_USING_CHARLEN
|
||||
#include "ctype-mb.ic"
|
||||
#include "ctype-mb.inl"
|
||||
#undef MY_FUNCTION_NAME
|
||||
#undef CHARLEN
|
||||
#undef DEFINE_WELL_FORMED_CHAR_LENGTH_USING_CHARLEN
|
||||
@@ -7056,7 +7056,7 @@ my_charlen_filename(CHARSET_INFO *cs, const uchar *str, const uchar *end)
|
||||
#define WEIGHT_MB2(x,y) my_weight_mb2_utf8_general_ci(x,y)
|
||||
#define WEIGHT_MB3(x,y,z) my_weight_mb3_utf8_general_ci(x,y,z)
|
||||
*/
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
static MY_COLLATION_HANDLER my_collation_filename_handler =
|
||||
@@ -7639,7 +7639,7 @@ my_charlen_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
|
||||
#define MY_FUNCTION_NAME(x) my_ ## x ## _utf8mb4
|
||||
#define CHARLEN(cs,str,end) my_charlen_utf8mb4(cs,str,end)
|
||||
#define DEFINE_WELL_FORMED_CHAR_LENGTH_USING_CHARLEN
|
||||
#include "ctype-mb.ic"
|
||||
#include "ctype-mb.inl"
|
||||
#undef MY_FUNCTION_NAME
|
||||
#undef CHARLEN
|
||||
#undef DEFINE_WELL_FORMED_CHAR_LENGTH_USING_CHARLEN
|
||||
@@ -7663,7 +7663,7 @@ my_charlen_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
|
||||
All non-BMP characters have the same weight.
|
||||
*/
|
||||
#define WEIGHT_MB4(b0,b1,b2,b3) MY_CS_REPLACEMENT_CHARACTER
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
#define MY_FUNCTION_NAME(x) my_ ## x ## _utf8mb4_bin
|
||||
@@ -7672,7 +7672,7 @@ my_charlen_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
|
||||
#define WEIGHT_MB2(b0,b1) ((int) UTF8MB2_CODE(b0,b1))
|
||||
#define WEIGHT_MB3(b0,b1,b2) ((int) UTF8MB3_CODE(b0,b1,b2))
|
||||
#define WEIGHT_MB4(b0,b1,b2,b3) ((int) UTF8MB4_CODE(b0,b1,b2,b3))
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
#define DEFINE_STRNNCOLLSP_NOPAD
|
||||
@@ -7686,7 +7686,7 @@ my_charlen_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
|
||||
All non-BMP characters have the same weight.
|
||||
*/
|
||||
#define WEIGHT_MB4(b0,b1,b2,b3) MY_CS_REPLACEMENT_CHARACTER
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
#define DEFINE_STRNNCOLLSP_NOPAD
|
||||
@@ -7696,7 +7696,7 @@ my_charlen_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
|
||||
#define WEIGHT_MB2(b0,b1) ((int) UTF8MB2_CODE(b0,b1))
|
||||
#define WEIGHT_MB3(b0,b1,b2) ((int) UTF8MB3_CODE(b0,b1,b2))
|
||||
#define WEIGHT_MB4(b0,b1,b2,b3) ((int) UTF8MB4_CODE(b0,b1,b2,b3))
|
||||
#include "strcoll.ic"
|
||||
#include "strcoll.inl"
|
||||
|
||||
|
||||
static MY_COLLATION_HANDLER my_collation_utf8mb4_general_ci_handler=
|
||||
|
Reference in New Issue
Block a user