Commit a6e5ac22 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-4929 Myanmar collation

parent e9b3c971
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -83,6 +83,7 @@ utf8_unicode_520_ci utf8 214 # # ...@@ -83,6 +83,7 @@ utf8_unicode_520_ci utf8 214 # #
utf8_vietnamese_ci utf8 215 # # utf8_vietnamese_ci utf8 215 # #
utf8_general_mysql500_ci utf8 223 # # utf8_general_mysql500_ci utf8 223 # #
utf8_croatian_ci utf8 576 # # utf8_croatian_ci utf8 576 # #
utf8_myanmar_ci utf8 577 # #
ucs2_general_ci ucs2 35 Yes # # ucs2_general_ci ucs2 35 Yes # #
ucs2_bin ucs2 90 # # ucs2_bin ucs2 90 # #
ucs2_unicode_ci ucs2 128 # # ucs2_unicode_ci ucs2 128 # #
...@@ -111,6 +112,7 @@ ucs2_unicode_520_ci ucs2 150 # # ...@@ -111,6 +112,7 @@ ucs2_unicode_520_ci ucs2 150 # #
ucs2_vietnamese_ci ucs2 151 # # ucs2_vietnamese_ci ucs2 151 # #
ucs2_general_mysql500_ci ucs2 159 # # ucs2_general_mysql500_ci ucs2 159 # #
ucs2_croatian_ci ucs2 640 # # ucs2_croatian_ci ucs2 640 # #
ucs2_myanmar_ci ucs2 641 # #
cp866_general_ci cp866 36 Yes # # cp866_general_ci cp866 36 Yes # #
cp866_bin cp866 68 # # cp866_bin cp866 68 # #
keybcs2_general_ci keybcs2 37 Yes # # keybcs2_general_ci keybcs2 37 Yes # #
...@@ -152,6 +154,7 @@ utf8mb4_croatian_mysql561_ci utf8mb4 245 # # ...@@ -152,6 +154,7 @@ utf8mb4_croatian_mysql561_ci utf8mb4 245 # #
utf8mb4_unicode_520_ci utf8mb4 246 # # utf8mb4_unicode_520_ci utf8mb4 246 # #
utf8mb4_vietnamese_ci utf8mb4 247 # # utf8mb4_vietnamese_ci utf8mb4 247 # #
utf8mb4_croatian_ci utf8mb4 608 # # utf8mb4_croatian_ci utf8mb4 608 # #
utf8mb4_myanmar_ci utf8mb4 609 # #
cp1251_bulgarian_ci cp1251 14 # # cp1251_bulgarian_ci cp1251 14 # #
cp1251_ukrainian_ci cp1251 23 # # cp1251_ukrainian_ci cp1251 23 # #
cp1251_bin cp1251 50 # # cp1251_bin cp1251 50 # #
...@@ -184,6 +187,7 @@ utf16_croatian_mysql561_ci utf16 122 # # ...@@ -184,6 +187,7 @@ utf16_croatian_mysql561_ci utf16 122 # #
utf16_unicode_520_ci utf16 123 # # utf16_unicode_520_ci utf16 123 # #
utf16_vietnamese_ci utf16 124 # # utf16_vietnamese_ci utf16 124 # #
utf16_croatian_ci utf16 672 # # utf16_croatian_ci utf16 672 # #
utf16_myanmar_ci utf16 673 # #
utf16le_general_ci utf16le 56 Yes # # utf16le_general_ci utf16le 56 Yes # #
utf16le_bin utf16le 62 # # utf16le_bin utf16le 62 # #
cp1256_general_ci cp1256 57 Yes # # cp1256_general_ci cp1256 57 Yes # #
...@@ -218,6 +222,7 @@ utf32_croatian_mysql561_ci utf32 181 # # ...@@ -218,6 +222,7 @@ utf32_croatian_mysql561_ci utf32 181 # #
utf32_unicode_520_ci utf32 182 # # utf32_unicode_520_ci utf32 182 # #
utf32_vietnamese_ci utf32 183 # # utf32_vietnamese_ci utf32 183 # #
utf32_croatian_ci utf32 736 # # utf32_croatian_ci utf32 736 # #
utf32_myanmar_ci utf32 737 # #
binary binary 63 Yes # # binary binary 63 Yes # #
geostd8_general_ci geostd8 92 Yes # # geostd8_general_ci geostd8 92 Yes # #
geostd8_bin geostd8 93 # # geostd8_bin geostd8 93 # #
......
...@@ -83,6 +83,7 @@ utf8_unicode_520_ci utf8 214 # # ...@@ -83,6 +83,7 @@ utf8_unicode_520_ci utf8 214 # #
utf8_vietnamese_ci utf8 215 # # utf8_vietnamese_ci utf8 215 # #
utf8_general_mysql500_ci utf8 223 # # utf8_general_mysql500_ci utf8 223 # #
utf8_croatian_ci utf8 576 # # utf8_croatian_ci utf8 576 # #
utf8_myanmar_ci utf8 577 # #
ucs2_general_ci ucs2 35 Yes # # ucs2_general_ci ucs2 35 Yes # #
ucs2_bin ucs2 90 # # ucs2_bin ucs2 90 # #
ucs2_unicode_ci ucs2 128 # # ucs2_unicode_ci ucs2 128 # #
...@@ -111,6 +112,7 @@ ucs2_unicode_520_ci ucs2 150 # # ...@@ -111,6 +112,7 @@ ucs2_unicode_520_ci ucs2 150 # #
ucs2_vietnamese_ci ucs2 151 # # ucs2_vietnamese_ci ucs2 151 # #
ucs2_general_mysql500_ci ucs2 159 # # ucs2_general_mysql500_ci ucs2 159 # #
ucs2_croatian_ci ucs2 640 # # ucs2_croatian_ci ucs2 640 # #
ucs2_myanmar_ci ucs2 641 # #
cp866_general_ci cp866 36 Yes # # cp866_general_ci cp866 36 Yes # #
cp866_bin cp866 68 # # cp866_bin cp866 68 # #
keybcs2_general_ci keybcs2 37 Yes # # keybcs2_general_ci keybcs2 37 Yes # #
...@@ -152,6 +154,7 @@ utf8mb4_croatian_mysql561_ci utf8mb4 245 # # ...@@ -152,6 +154,7 @@ utf8mb4_croatian_mysql561_ci utf8mb4 245 # #
utf8mb4_unicode_520_ci utf8mb4 246 # # utf8mb4_unicode_520_ci utf8mb4 246 # #
utf8mb4_vietnamese_ci utf8mb4 247 # # utf8mb4_vietnamese_ci utf8mb4 247 # #
utf8mb4_croatian_ci utf8mb4 608 # # utf8mb4_croatian_ci utf8mb4 608 # #
utf8mb4_myanmar_ci utf8mb4 609 # #
cp1251_bulgarian_ci cp1251 14 # # cp1251_bulgarian_ci cp1251 14 # #
cp1251_ukrainian_ci cp1251 23 # # cp1251_ukrainian_ci cp1251 23 # #
cp1251_bin cp1251 50 # # cp1251_bin cp1251 50 # #
...@@ -184,6 +187,7 @@ utf16_croatian_mysql561_ci utf16 122 # # ...@@ -184,6 +187,7 @@ utf16_croatian_mysql561_ci utf16 122 # #
utf16_unicode_520_ci utf16 123 # # utf16_unicode_520_ci utf16 123 # #
utf16_vietnamese_ci utf16 124 # # utf16_vietnamese_ci utf16 124 # #
utf16_croatian_ci utf16 672 # # utf16_croatian_ci utf16 672 # #
utf16_myanmar_ci utf16 673 # #
utf16le_general_ci utf16le 56 Yes # # utf16le_general_ci utf16le 56 Yes # #
utf16le_bin utf16le 62 # # utf16le_bin utf16le 62 # #
cp1256_general_ci cp1256 57 Yes # # cp1256_general_ci cp1256 57 Yes # #
...@@ -218,6 +222,7 @@ utf32_croatian_mysql561_ci utf32 181 # # ...@@ -218,6 +222,7 @@ utf32_croatian_mysql561_ci utf32 181 # #
utf32_unicode_520_ci utf32 182 # # utf32_unicode_520_ci utf32 182 # #
utf32_vietnamese_ci utf32 183 # # utf32_vietnamese_ci utf32 183 # #
utf32_croatian_ci utf32 736 # # utf32_croatian_ci utf32 736 # #
utf32_myanmar_ci utf32 737 # #
binary binary 63 Yes # # binary binary 63 Yes # #
geostd8_general_ci geostd8 92 Yes # # geostd8_general_ci geostd8 92 Yes # #
geostd8_bin geostd8 93 # # geostd8_bin geostd8 93 # #
......
...@@ -564,3 +564,21 @@ SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci; ...@@ -564,3 +564,21 @@ SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci;
--echo # --echo #
--echo # End of 5.6 tests --echo # End of 5.6 tests
--echo # --echo #
--echo #
--echo # Start of MariaDB-10.0 tests
--echo #
--echo
--echo #
--echo # MDEV-4929 Myanmar collation
--echo #
SET NAMES utf8 COLLATE utf8_myanmar_ci;
--source include/ctype_myanmar.inc
SET collation_connection=ucs2_myanmar_ci;
--source include/ctype_myanmar.inc
--echo #
--echo # End of MariaDB-10.0 tests
--echo #
-- source include/have_ucs2.inc
-- source include/have_utf16.inc -- source include/have_utf16.inc
--disable_warnings --disable_warnings
...@@ -190,3 +191,20 @@ SET collation_connection=utf16_unicode_520_ci; ...@@ -190,3 +191,20 @@ SET collation_connection=utf16_unicode_520_ci;
--echo # --echo #
--echo # End of 5.6 tests --echo # End of 5.6 tests
--echo # --echo #
--echo #
--echo # Start of MariaDB-10.0 tests
--echo #
--echo
--echo #
--echo # MDEV-4929 Myanmar collation
--echo #
SET NAMES utf8;
SET collation_connection=utf16_myanmar_ci;
--source include/ctype_myanmar.inc
--echo #
--echo # End of MariaDB-10.0 tests
--echo #
...@@ -212,3 +212,20 @@ SET collation_connection=utf32_unicode_520_ci; ...@@ -212,3 +212,20 @@ SET collation_connection=utf32_unicode_520_ci;
--echo # --echo #
--echo # End of 5.6 tests --echo # End of 5.6 tests
--echo # --echo #
--echo #
--echo # Start of MariaDB-10.0 tests
--echo #
--echo
--echo #
--echo # MDEV-4929 Myanmar collation
--echo #
SET NAMES utf8;
SET collation_connection=utf32_myanmar_ci;
--source include/ctype_myanmar.inc
--echo #
--echo # End of MariaDB-10.0 tests
--echo #
...@@ -54,3 +54,19 @@ SET collation_connection=utf8mb4_czech_ci; ...@@ -54,3 +54,19 @@ SET collation_connection=utf8mb4_czech_ci;
--echo # --echo #
--echo # End of 5.5 tests --echo # End of 5.5 tests
--echo # --echo #
--echo #
--echo # Start of MariaDB-10.0 tests
--echo #
--echo
--echo #
--echo # MDEV-4929 Myanmar collation
--echo #
SET NAMES utf8mb4 COLLATE utf8mb4_myanmar_ci;
--source include/ctype_myanmar.inc
--echo #
--echo # End of MariaDB-10.0 tests
--echo #
...@@ -48,6 +48,7 @@ extern struct charset_info_st my_charset_ucs2_sinhala_uca_ci; ...@@ -48,6 +48,7 @@ extern struct charset_info_st my_charset_ucs2_sinhala_uca_ci;
extern struct charset_info_st my_charset_ucs2_unicode_520_ci; extern struct charset_info_st my_charset_ucs2_unicode_520_ci;
extern struct charset_info_st my_charset_ucs2_vietnamese_ci; extern struct charset_info_st my_charset_ucs2_vietnamese_ci;
extern struct charset_info_st my_charset_ucs2_croatian_uca_ci; extern struct charset_info_st my_charset_ucs2_croatian_uca_ci;
extern struct charset_info_st my_charset_ucs2_myanmar_uca_ci;
#endif #endif
...@@ -76,6 +77,7 @@ extern struct charset_info_st my_charset_utf32_sinhala_uca_ci; ...@@ -76,6 +77,7 @@ extern struct charset_info_st my_charset_utf32_sinhala_uca_ci;
extern struct charset_info_st my_charset_utf32_unicode_520_ci; extern struct charset_info_st my_charset_utf32_unicode_520_ci;
extern struct charset_info_st my_charset_utf32_vietnamese_ci; extern struct charset_info_st my_charset_utf32_vietnamese_ci;
extern struct charset_info_st my_charset_utf32_croatian_uca_ci; extern struct charset_info_st my_charset_utf32_croatian_uca_ci;
extern struct charset_info_st my_charset_utf32_myanmar_uca_ci;
#endif /* HAVE_CHARSET_utf32 */ #endif /* HAVE_CHARSET_utf32 */
...@@ -104,6 +106,7 @@ extern struct charset_info_st my_charset_utf16_sinhala_uca_ci; ...@@ -104,6 +106,7 @@ extern struct charset_info_st my_charset_utf16_sinhala_uca_ci;
extern struct charset_info_st my_charset_utf16_unicode_520_ci; extern struct charset_info_st my_charset_utf16_unicode_520_ci;
extern struct charset_info_st my_charset_utf16_vietnamese_ci; extern struct charset_info_st my_charset_utf16_vietnamese_ci;
extern struct charset_info_st my_charset_utf16_croatian_uca_ci; extern struct charset_info_st my_charset_utf16_croatian_uca_ci;
extern struct charset_info_st my_charset_utf16_myanmar_uca_ci;
#endif /* HAVE_CHARSET_utf16 */ #endif /* HAVE_CHARSET_utf16 */
...@@ -132,6 +135,7 @@ extern struct charset_info_st my_charset_utf8_sinhala_uca_ci; ...@@ -132,6 +135,7 @@ extern struct charset_info_st my_charset_utf8_sinhala_uca_ci;
extern struct charset_info_st my_charset_utf8_unicode_520_ci; extern struct charset_info_st my_charset_utf8_unicode_520_ci;
extern struct charset_info_st my_charset_utf8_vietnamese_ci; extern struct charset_info_st my_charset_utf8_vietnamese_ci;
extern struct charset_info_st my_charset_utf8_croatian_uca_ci; extern struct charset_info_st my_charset_utf8_croatian_uca_ci;
extern struct charset_info_st my_charset_utf8_myanmar_uca_ci;
#ifdef HAVE_UTF8_GENERAL_CS #ifdef HAVE_UTF8_GENERAL_CS
extern struct charset_info_st my_charset_utf8_general_cs; extern struct charset_info_st my_charset_utf8_general_cs;
#endif #endif
...@@ -162,6 +166,7 @@ extern struct charset_info_st my_charset_utf8mb4_sinhala_uca_ci; ...@@ -162,6 +166,7 @@ extern struct charset_info_st my_charset_utf8mb4_sinhala_uca_ci;
extern struct charset_info_st my_charset_utf8mb4_unicode_520_ci; extern struct charset_info_st my_charset_utf8mb4_unicode_520_ci;
extern struct charset_info_st my_charset_utf8mb4_vietnamese_ci; extern struct charset_info_st my_charset_utf8mb4_vietnamese_ci;
extern struct charset_info_st my_charset_utf8mb4_croatian_uca_ci; extern struct charset_info_st my_charset_utf8mb4_croatian_uca_ci;
extern struct charset_info_st my_charset_utf8mb4_myanmar_uca_ci;
#endif /* HAVE_CHARSET_utf8mb4 */ #endif /* HAVE_CHARSET_utf8mb4 */
#endif /* HAVE_UCA_COLLATIONS */ #endif /* HAVE_UCA_COLLATIONS */
...@@ -255,6 +260,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused))) ...@@ -255,6 +260,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation(&my_charset_ucs2_unicode_520_ci); add_compiled_collation(&my_charset_ucs2_unicode_520_ci);
add_compiled_collation(&my_charset_ucs2_vietnamese_ci); add_compiled_collation(&my_charset_ucs2_vietnamese_ci);
add_compiled_collation(&my_charset_ucs2_croatian_uca_ci); add_compiled_collation(&my_charset_ucs2_croatian_uca_ci);
add_compiled_collation(&my_charset_ucs2_myanmar_uca_ci);
#endif #endif
#endif #endif
...@@ -296,6 +302,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused))) ...@@ -296,6 +302,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation(&my_charset_utf8_unicode_520_ci); add_compiled_collation(&my_charset_utf8_unicode_520_ci);
add_compiled_collation(&my_charset_utf8_vietnamese_ci); add_compiled_collation(&my_charset_utf8_vietnamese_ci);
add_compiled_collation(&my_charset_utf8_croatian_uca_ci); add_compiled_collation(&my_charset_utf8_croatian_uca_ci);
add_compiled_collation(&my_charset_utf8_myanmar_uca_ci);
#endif #endif
#endif /* HAVE_CHARSET_utf8 */ #endif /* HAVE_CHARSET_utf8 */
...@@ -329,6 +336,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused))) ...@@ -329,6 +336,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation(&my_charset_utf8mb4_unicode_520_ci); add_compiled_collation(&my_charset_utf8mb4_unicode_520_ci);
add_compiled_collation(&my_charset_utf8mb4_vietnamese_ci); add_compiled_collation(&my_charset_utf8mb4_vietnamese_ci);
add_compiled_collation(&my_charset_utf8mb4_croatian_uca_ci); add_compiled_collation(&my_charset_utf8mb4_croatian_uca_ci);
add_compiled_collation(&my_charset_utf8mb4_myanmar_uca_ci);
#endif /* HAVE_UCA_COLLATIONS */ #endif /* HAVE_UCA_COLLATIONS */
#endif /* HAVE_CHARSET_utf8mb4 */ #endif /* HAVE_CHARSET_utf8mb4 */
...@@ -364,6 +372,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused))) ...@@ -364,6 +372,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation(&my_charset_utf16_unicode_520_ci); add_compiled_collation(&my_charset_utf16_unicode_520_ci);
add_compiled_collation(&my_charset_utf16_vietnamese_ci); add_compiled_collation(&my_charset_utf16_vietnamese_ci);
add_compiled_collation(&my_charset_utf16_croatian_uca_ci); add_compiled_collation(&my_charset_utf16_croatian_uca_ci);
add_compiled_collation(&my_charset_utf16_myanmar_uca_ci);
#endif /* HAVE_UCA_COLLATIONS */ #endif /* HAVE_UCA_COLLATIONS */
#endif /* HAVE_CHARSET_utf16 */ #endif /* HAVE_CHARSET_utf16 */
...@@ -397,6 +406,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused))) ...@@ -397,6 +406,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
add_compiled_collation(&my_charset_utf32_unicode_520_ci); add_compiled_collation(&my_charset_utf32_unicode_520_ci);
add_compiled_collation(&my_charset_utf32_vietnamese_ci); add_compiled_collation(&my_charset_utf32_vietnamese_ci);
add_compiled_collation(&my_charset_utf32_croatian_uca_ci); add_compiled_collation(&my_charset_utf32_croatian_uca_ci);
add_compiled_collation(&my_charset_utf32_myanmar_uca_ci);
#endif /* HAVE_UCA_COLLATIONS */ #endif /* HAVE_UCA_COLLATIONS */
#endif /* HAVE_CHARSET_utf32 */ #endif /* HAVE_CHARSET_utf32 */
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment