2012-02-15 17:21:38 +01:00
|
|
|
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
|
2003-10-06 22:56:34 +03:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2006-12-23 20:17:15 +01:00
|
|
|
the Free Software Foundation; version 2 of the License.
|
2003-10-06 22:56:34 +03:00
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2019-05-11 21:29:06 +03:00
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
|
2003-10-06 22:56:34 +03:00
|
|
|
|
|
|
|
#include "mysys_priv.h"
|
|
|
|
|
MDEV-27009 Add UCA-14.0.0 collations
- Added one neutral and 22 tailored (language specific) collations based on
Unicode Collation Algorithm version 14.0.0.
Collations were added for Unicode character sets
utf8mb3, utf8mb4, ucs2, utf16, utf32.
Every tailoring was added with four accent and case
sensitivity flag combinations, e.g:
* utf8mb4_uca1400_swedish_as_cs
* utf8mb4_uca1400_swedish_as_ci
* utf8mb4_uca1400_swedish_ai_cs
* utf8mb4_uca1400_swedish_ai_ci
and their _nopad_ variants:
* utf8mb4_uca1400_swedish_nopad_as_cs
* utf8mb4_uca1400_swedish_nopad_as_ci
* utf8mb4_uca1400_swedish_nopad_ai_cs
* utf8mb4_uca1400_swedish_nopad_ai_ci
- Introducing a conception of contextually typed named collations:
CREATE DATABASE db1 CHARACTER SET utf8mb4;
CREATE TABLE db1.t1 (a CHAR(10) COLLATE uca1400_as_ci);
The idea is that there is no a need to specify the character set prefix
in the new collation names. It's enough to type just the suffix
"uca1400_as_ci". The character set is taken from the context.
In the above example script the context character set is utf8mb4.
So the CREATE TABLE will make a column with the collation
utf8mb4_uca1400_as_ci.
Short collations names can be used in any parts of the SQL syntax
where the COLLATE clause is understood.
- New collations are displayed only one time
(without character set combinations) by these statements:
SELECT * FROM INFORMATION_SCHEMA.COLLATIONS;
SHOW COLLATION;
For example, all these collations:
- utf8mb3_uca1400_swedish_as_ci
- utf8mb4_uca1400_swedish_as_ci
- ucs2_uca1400_swedish_as_ci
- utf16_uca1400_swedish_as_ci
- utf32_uca1400_swedish_as_ci
have just one entry in INFORMATION_SCHEMA.COLLATIONS and SHOW COLLATION,
with COLLATION_NAME equal to "uca1400_swedish_as_ci", which is the suffix
without the character set name:
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS
WHERE COLLATION_NAME LIKE '%uca1400_swedish_as_ci';
+-----------------------+
| COLLATION_NAME |
+-----------------------+
| uca1400_swedish_as_ci |
+-----------------------+
Note, the behaviour of old collations did not change.
Non-unicode collations (e.g. latin1_swedish_ci) and
old UCA-4.0.0 collations (e.g. utf8mb4_unicode_ci)
are still displayed with the character set prefix, as before.
- The structure of the table INFORMATION_SCHEMA.COLLATIONS was changed.
The NOT NULL constraint was removed from these columns:
- CHARACTER_SET_NAME
- ID
- IS_DEFAULT
and from the corresponding columns in SHOW COLLATION.
For example:
SELECT COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT
FROM INFORMATION_SCHEMA.COLLATIONS
WHERE COLLATION_NAME LIKE '%uca1400_swedish_as_ci';
+-----------------------+--------------------+------+------------+
| COLLATION_NAME | CHARACTER_SET_NAME | ID | IS_DEFAULT |
+-----------------------+--------------------+------+------------+
| uca1400_swedish_as_ci | NULL | NULL | NULL |
+-----------------------+--------------------+------+------------+
The NULL value in these columns now means that the collation
is applicable to multiple character sets.
The behavioir of old collations did not change.
Make sure your client programs can handle NULL values in these columns.
- The structure of the table
INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY was changed.
Three new NOT NULL columns were added:
- FULL_COLLATION_NAME
- ID
- IS_DEFAULT
New collations have multiple entries in COLLATION_CHARACTER_SET_APPLICABILITY.
The column COLLATION_NAME contains the collation name without the character
set prefix. The column FULL_COLLATION_NAME contains the collation name with
the character set prefix.
Old collations have full collation name in both FULL_COLLATION_NAME and
COLLATION_NAME.
SELECT COLLATION_NAME, FULL_COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT
FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY
WHERE FULL_COLLATION_NAME RLIKE '^(utf8mb4|latin1).*swedish.*ci$';
+-----------------------------+-------------------------------------+--------------------+------+------------+
| COLLATION_NAME | FULL_COLLATION_NAME | CHARACTER_SET_NAME | ID | IS_DEFAULT |
+-----------------------------+-------------------------------------+--------------------+------+------------+
| latin1_swedish_ci | latin1_swedish_ci | latin1 | 8 | Yes |
| latin1_swedish_nopad_ci | latin1_swedish_nopad_ci | latin1 | 1032 | |
| utf8mb4_swedish_ci | utf8mb4_swedish_ci | utf8mb4 | 232 | |
| uca1400_swedish_ai_ci | utf8mb4_uca1400_swedish_ai_ci | utf8mb4 | 2368 | |
| uca1400_swedish_as_ci | utf8mb4_uca1400_swedish_as_ci | utf8mb4 | 2370 | |
| uca1400_swedish_nopad_ai_ci | utf8mb4_uca1400_swedish_nopad_ai_ci | utf8mb4 | 2372 | |
| uca1400_swedish_nopad_as_ci | utf8mb4_uca1400_swedish_nopad_as_ci | utf8mb4 | 2374 | |
+-----------------------------+-------------------------------------+--------------------+------+------------+
- Other INFORMATION_SCHEMA queries:
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLUMNS;
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.PARAMETERS;
SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES;
SELECT DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA;
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.ROUTINES;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.EVENTS;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.EVENTS;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.ROUTINES;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.ROUTINES;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.TRIGGERS;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.TRIGGERS;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.VIEWS;
display full collation names, including character sets prefix,
for all collations, including new collations.
Corresponding SHOW commands also display full collation names
in collation related columns:
SHOW CREATE TABLE t1;
SHOW CREATE DATABASE db1;
SHOW TABLE STATUS;
SHOW CREATE FUNCTION f1;
SHOW CREATE PROCEDURE p1;
SHOW CREATE EVENT ev1;
SHOW CREATE TRIGGER tr1;
SHOW CREATE VIEW;
These INFORMATION_SCHEMA queries and SHOW statements may change in
the future, to display show collation names.
2021-11-28 16:55:15 +04:00
|
|
|
#include "../strings/ctype-uca.h"
|
|
|
|
|
2003-10-06 22:56:34 +03:00
|
|
|
/*
|
|
|
|
Include all compiled character sets into the client
|
|
|
|
If a client don't want to use all of them, he can define his own
|
|
|
|
init_compiled_charsets() that only adds those that he wants
|
|
|
|
*/
|
|
|
|
|
2005-02-18 12:58:16 +04:00
|
|
|
#ifdef HAVE_UCA_COLLATIONS
|
|
|
|
|
2004-06-11 19:16:06 +05:00
|
|
|
#ifdef HAVE_CHARSET_ucs2
|
2013-10-02 15:04:07 +04:00
|
|
|
extern struct charset_info_st my_charset_ucs2_german2_uca_ci;
|
2010-01-06 21:20:16 +02:00
|
|
|
extern struct charset_info_st my_charset_ucs2_icelandic_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_latvian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_romanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_slovenian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_polish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_estonian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_spanish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_swedish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_turkish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_czech_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_danish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_lithuanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_slovak_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_spanish2_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_roman_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_persian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_esperanto_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_hungarian_uca_ci;
|
2013-11-09 00:20:07 +02:00
|
|
|
extern struct charset_info_st my_charset_ucs2_croatian_mysql561_uca_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_ucs2_sinhala_uca_ci;
|
2013-11-12 16:48:57 +04:00
|
|
|
extern struct charset_info_st my_charset_ucs2_unicode_520_ci;
|
|
|
|
extern struct charset_info_st my_charset_ucs2_vietnamese_ci;
|
2010-01-06 21:20:16 +02:00
|
|
|
extern struct charset_info_st my_charset_ucs2_croatian_uca_ci;
|
2013-12-20 12:42:33 +04:00
|
|
|
extern struct charset_info_st my_charset_ucs2_myanmar_uca_ci;
|
2016-05-30 16:56:29 +04:00
|
|
|
extern struct charset_info_st my_charset_ucs2_thai_520_w2;
|
2016-09-23 14:19:07 +04:00
|
|
|
extern struct charset_info_st my_charset_ucs2_unicode_520_nopad_ci;
|
2004-06-11 19:16:06 +05:00
|
|
|
#endif
|
|
|
|
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_utf32
|
2013-10-02 15:04:07 +04:00
|
|
|
extern struct charset_info_st my_charset_utf32_german2_uca_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf32_icelandic_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_latvian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_romanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_slovenian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_polish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_estonian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_spanish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_swedish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_turkish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_czech_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_danish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_lithuanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_slovak_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_spanish2_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_roman_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_persian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_esperanto_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_hungarian_uca_ci;
|
2013-11-09 00:20:07 +02:00
|
|
|
extern struct charset_info_st my_charset_utf32_croatian_mysql561_uca_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf32_sinhala_uca_ci;
|
2013-11-12 16:48:57 +04:00
|
|
|
extern struct charset_info_st my_charset_utf32_unicode_520_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf32_vietnamese_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf32_croatian_uca_ci;
|
2013-12-20 12:42:33 +04:00
|
|
|
extern struct charset_info_st my_charset_utf32_myanmar_uca_ci;
|
2016-05-30 16:56:29 +04:00
|
|
|
extern struct charset_info_st my_charset_utf32_thai_520_w2;
|
2016-09-23 14:19:07 +04:00
|
|
|
extern struct charset_info_st my_charset_utf32_unicode_520_nopad_ci;
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#endif /* HAVE_CHARSET_utf32 */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_utf16
|
2013-10-02 15:04:07 +04:00
|
|
|
extern struct charset_info_st my_charset_utf16_german2_uca_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf16_icelandic_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_latvian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_romanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_slovenian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_polish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_estonian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_spanish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_swedish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_turkish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_czech_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_danish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_lithuanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_slovak_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_spanish2_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_roman_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_persian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_esperanto_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_hungarian_uca_ci;
|
2013-11-09 00:20:07 +02:00
|
|
|
extern struct charset_info_st my_charset_utf16_croatian_mysql561_uca_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf16_sinhala_uca_ci;
|
2013-11-12 16:48:57 +04:00
|
|
|
extern struct charset_info_st my_charset_utf16_unicode_520_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf16_vietnamese_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf16_croatian_uca_ci;
|
2013-12-20 12:42:33 +04:00
|
|
|
extern struct charset_info_st my_charset_utf16_myanmar_uca_ci;
|
2016-05-30 16:56:29 +04:00
|
|
|
extern struct charset_info_st my_charset_utf16_thai_520_w2;
|
2016-09-23 14:19:07 +04:00
|
|
|
extern struct charset_info_st my_charset_utf16_unicode_520_nopad_ci;
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#endif /* HAVE_CHARSET_utf16 */
|
|
|
|
|
|
|
|
|
2019-06-28 09:05:12 +04:00
|
|
|
#ifdef HAVE_CHARSET_utf8mb3
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_german2_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_icelandic_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_latvian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_romanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_slovenian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_polish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_estonian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_spanish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_swedish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_turkish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_czech_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_danish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_lithuanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_slovak_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_spanish2_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_roman_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_persian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_esperanto_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_hungarian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_croatian_mysql561_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_sinhala_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_unicode_520_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_vietnamese_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_croatian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_myanmar_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb3_thai_520_w2;
|
2005-04-08 13:56:48 +02:00
|
|
|
#ifdef HAVE_UTF8_GENERAL_CS
|
2019-06-28 09:05:12 +04:00
|
|
|
extern struct charset_info_st my_charset_utf8mb3_general_cs;
|
2005-03-29 14:48:47 +05:00
|
|
|
#endif
|
2019-06-28 09:05:12 +04:00
|
|
|
extern struct charset_info_st my_charset_utf8mb3_unicode_520_nopad_ci;
|
2004-06-14 16:29:51 +05:00
|
|
|
#endif
|
|
|
|
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#ifdef HAVE_CHARSET_utf8mb4
|
2013-10-02 15:04:07 +04:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_german2_uca_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_icelandic_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_latvian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_romanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_slovenian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_polish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_estonian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_spanish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_swedish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_turkish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_czech_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_danish_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_lithuanian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_slovak_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_spanish2_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_roman_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_persian_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_esperanto_uca_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_hungarian_uca_ci;
|
2013-11-09 00:20:07 +02:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_croatian_mysql561_uca_ci;
|
2010-11-25 18:17:28 +01:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_sinhala_uca_ci;
|
2013-11-12 16:48:57 +04:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_unicode_520_ci;
|
|
|
|
extern struct charset_info_st my_charset_utf8mb4_vietnamese_ci;
|
2011-04-25 17:22:25 +02:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_croatian_uca_ci;
|
2013-12-20 12:42:33 +04:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_myanmar_uca_ci;
|
2016-05-30 16:56:29 +04:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_thai_520_w2;
|
2016-09-23 14:19:07 +04:00
|
|
|
extern struct charset_info_st my_charset_utf8mb4_unicode_520_nopad_ci;
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#endif /* HAVE_CHARSET_utf8mb4 */
|
|
|
|
|
2005-02-18 12:58:16 +04:00
|
|
|
#endif /* HAVE_UCA_COLLATIONS */
|
|
|
|
|
MDEV-27009 Add UCA-14.0.0 collations
- Added one neutral and 22 tailored (language specific) collations based on
Unicode Collation Algorithm version 14.0.0.
Collations were added for Unicode character sets
utf8mb3, utf8mb4, ucs2, utf16, utf32.
Every tailoring was added with four accent and case
sensitivity flag combinations, e.g:
* utf8mb4_uca1400_swedish_as_cs
* utf8mb4_uca1400_swedish_as_ci
* utf8mb4_uca1400_swedish_ai_cs
* utf8mb4_uca1400_swedish_ai_ci
and their _nopad_ variants:
* utf8mb4_uca1400_swedish_nopad_as_cs
* utf8mb4_uca1400_swedish_nopad_as_ci
* utf8mb4_uca1400_swedish_nopad_ai_cs
* utf8mb4_uca1400_swedish_nopad_ai_ci
- Introducing a conception of contextually typed named collations:
CREATE DATABASE db1 CHARACTER SET utf8mb4;
CREATE TABLE db1.t1 (a CHAR(10) COLLATE uca1400_as_ci);
The idea is that there is no a need to specify the character set prefix
in the new collation names. It's enough to type just the suffix
"uca1400_as_ci". The character set is taken from the context.
In the above example script the context character set is utf8mb4.
So the CREATE TABLE will make a column with the collation
utf8mb4_uca1400_as_ci.
Short collations names can be used in any parts of the SQL syntax
where the COLLATE clause is understood.
- New collations are displayed only one time
(without character set combinations) by these statements:
SELECT * FROM INFORMATION_SCHEMA.COLLATIONS;
SHOW COLLATION;
For example, all these collations:
- utf8mb3_uca1400_swedish_as_ci
- utf8mb4_uca1400_swedish_as_ci
- ucs2_uca1400_swedish_as_ci
- utf16_uca1400_swedish_as_ci
- utf32_uca1400_swedish_as_ci
have just one entry in INFORMATION_SCHEMA.COLLATIONS and SHOW COLLATION,
with COLLATION_NAME equal to "uca1400_swedish_as_ci", which is the suffix
without the character set name:
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS
WHERE COLLATION_NAME LIKE '%uca1400_swedish_as_ci';
+-----------------------+
| COLLATION_NAME |
+-----------------------+
| uca1400_swedish_as_ci |
+-----------------------+
Note, the behaviour of old collations did not change.
Non-unicode collations (e.g. latin1_swedish_ci) and
old UCA-4.0.0 collations (e.g. utf8mb4_unicode_ci)
are still displayed with the character set prefix, as before.
- The structure of the table INFORMATION_SCHEMA.COLLATIONS was changed.
The NOT NULL constraint was removed from these columns:
- CHARACTER_SET_NAME
- ID
- IS_DEFAULT
and from the corresponding columns in SHOW COLLATION.
For example:
SELECT COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT
FROM INFORMATION_SCHEMA.COLLATIONS
WHERE COLLATION_NAME LIKE '%uca1400_swedish_as_ci';
+-----------------------+--------------------+------+------------+
| COLLATION_NAME | CHARACTER_SET_NAME | ID | IS_DEFAULT |
+-----------------------+--------------------+------+------------+
| uca1400_swedish_as_ci | NULL | NULL | NULL |
+-----------------------+--------------------+------+------------+
The NULL value in these columns now means that the collation
is applicable to multiple character sets.
The behavioir of old collations did not change.
Make sure your client programs can handle NULL values in these columns.
- The structure of the table
INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY was changed.
Three new NOT NULL columns were added:
- FULL_COLLATION_NAME
- ID
- IS_DEFAULT
New collations have multiple entries in COLLATION_CHARACTER_SET_APPLICABILITY.
The column COLLATION_NAME contains the collation name without the character
set prefix. The column FULL_COLLATION_NAME contains the collation name with
the character set prefix.
Old collations have full collation name in both FULL_COLLATION_NAME and
COLLATION_NAME.
SELECT COLLATION_NAME, FULL_COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT
FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY
WHERE FULL_COLLATION_NAME RLIKE '^(utf8mb4|latin1).*swedish.*ci$';
+-----------------------------+-------------------------------------+--------------------+------+------------+
| COLLATION_NAME | FULL_COLLATION_NAME | CHARACTER_SET_NAME | ID | IS_DEFAULT |
+-----------------------------+-------------------------------------+--------------------+------+------------+
| latin1_swedish_ci | latin1_swedish_ci | latin1 | 8 | Yes |
| latin1_swedish_nopad_ci | latin1_swedish_nopad_ci | latin1 | 1032 | |
| utf8mb4_swedish_ci | utf8mb4_swedish_ci | utf8mb4 | 232 | |
| uca1400_swedish_ai_ci | utf8mb4_uca1400_swedish_ai_ci | utf8mb4 | 2368 | |
| uca1400_swedish_as_ci | utf8mb4_uca1400_swedish_as_ci | utf8mb4 | 2370 | |
| uca1400_swedish_nopad_ai_ci | utf8mb4_uca1400_swedish_nopad_ai_ci | utf8mb4 | 2372 | |
| uca1400_swedish_nopad_as_ci | utf8mb4_uca1400_swedish_nopad_as_ci | utf8mb4 | 2374 | |
+-----------------------------+-------------------------------------+--------------------+------+------------+
- Other INFORMATION_SCHEMA queries:
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLUMNS;
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.PARAMETERS;
SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES;
SELECT DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA;
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.ROUTINES;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.EVENTS;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.EVENTS;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.ROUTINES;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.ROUTINES;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.TRIGGERS;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.TRIGGERS;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.VIEWS;
display full collation names, including character sets prefix,
for all collations, including new collations.
Corresponding SHOW commands also display full collation names
in collation related columns:
SHOW CREATE TABLE t1;
SHOW CREATE DATABASE db1;
SHOW TABLE STATUS;
SHOW CREATE FUNCTION f1;
SHOW CREATE PROCEDURE p1;
SHOW CREATE EVENT ev1;
SHOW CREATE TRIGGER tr1;
SHOW CREATE VIEW;
These INFORMATION_SCHEMA queries and SHOW statements may change in
the future, to display show collation names.
2021-11-28 16:55:15 +04:00
|
|
|
|
|
|
|
static my_bool
|
|
|
|
my_uca1400_collation_definition_add(MY_CHARSET_LOADER *loader,
|
|
|
|
my_cs_encoding_t charset_id,
|
|
|
|
uint tailoring_id,
|
|
|
|
my_bool nopad,
|
|
|
|
my_bool secondary_level,
|
|
|
|
my_bool tertiary_level)
|
|
|
|
{
|
|
|
|
struct charset_info_st *tmp;
|
|
|
|
uint collation_id= my_uca1400_make_builtin_collation_id(charset_id,
|
|
|
|
tailoring_id,
|
|
|
|
nopad,
|
|
|
|
secondary_level,
|
|
|
|
tertiary_level);
|
|
|
|
if (!collation_id)
|
|
|
|
return FALSE;
|
|
|
|
if (!(tmp= (struct charset_info_st*)
|
|
|
|
my_once_alloc(sizeof(CHARSET_INFO),MYF(0))))
|
|
|
|
return TRUE;
|
|
|
|
if (my_uca1400_collation_definition_init(loader, tmp, collation_id))
|
|
|
|
return TRUE;
|
|
|
|
add_compiled_collation(tmp);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static my_bool
|
|
|
|
my_uca1400_collation_definitions_add()
|
|
|
|
{
|
|
|
|
my_cs_encoding_t charset_id;
|
|
|
|
MY_CHARSET_LOADER loader;
|
|
|
|
my_charset_loader_init_mysys(&loader);
|
|
|
|
for (charset_id= (my_cs_encoding_t) 0;
|
|
|
|
charset_id <= (my_cs_encoding_t) MY_CS_ENCODING_LAST;
|
|
|
|
charset_id++)
|
|
|
|
{
|
|
|
|
uint tailoring_id;
|
|
|
|
for (tailoring_id= 0 ;
|
|
|
|
tailoring_id < MY_UCA1400_COLLATION_DEFINITION_COUNT;
|
|
|
|
tailoring_id++)
|
|
|
|
{
|
|
|
|
uint nopad;
|
|
|
|
for (nopad= 0; nopad < 2; nopad++)
|
|
|
|
{
|
|
|
|
uint secondary_level;
|
|
|
|
for (secondary_level= 0; secondary_level < 2; secondary_level++)
|
|
|
|
{
|
|
|
|
if (my_uca1400_collation_definition_add(&loader,
|
|
|
|
charset_id, tailoring_id,
|
|
|
|
(my_bool) nopad,
|
|
|
|
(my_bool) secondary_level,
|
|
|
|
FALSE))
|
|
|
|
return TRUE;
|
|
|
|
if (my_uca1400_collation_definition_add(&loader,
|
|
|
|
charset_id, tailoring_id,
|
|
|
|
(my_bool) nopad,
|
|
|
|
(my_bool) secondary_level,
|
|
|
|
TRUE))
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-10-06 22:56:34 +03:00
|
|
|
my_bool init_compiled_charsets(myf flags __attribute__((unused)))
|
|
|
|
{
|
|
|
|
CHARSET_INFO *cs;
|
|
|
|
|
|
|
|
add_compiled_collation(&my_charset_bin);
|
2006-01-18 12:27:02 +04:00
|
|
|
add_compiled_collation(&my_charset_filename);
|
2003-10-06 22:56:34 +03:00
|
|
|
|
|
|
|
add_compiled_collation(&my_charset_latin1);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_latin1_nopad);
|
2003-10-06 22:56:34 +03:00
|
|
|
add_compiled_collation(&my_charset_latin1_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_latin1_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
add_compiled_collation(&my_charset_latin1_german2_ci);
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_big5
|
|
|
|
add_compiled_collation(&my_charset_big5_chinese_ci);
|
|
|
|
add_compiled_collation(&my_charset_big5_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_big5_chinese_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_big5_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_cp1250
|
2021-09-23 18:46:37 +04:00
|
|
|
add_compiled_collation(&my_charset_cp1250_czech_cs);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
2005-01-11 17:45:36 -08:00
|
|
|
#ifdef HAVE_CHARSET_cp932
|
|
|
|
add_compiled_collation(&my_charset_cp932_japanese_ci);
|
|
|
|
add_compiled_collation(&my_charset_cp932_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_cp932_japanese_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_cp932_nopad_bin);
|
2005-01-11 17:45:36 -08:00
|
|
|
#endif
|
|
|
|
|
2003-10-06 22:56:34 +03:00
|
|
|
#ifdef HAVE_CHARSET_latin2
|
2021-09-23 18:46:37 +04:00
|
|
|
add_compiled_collation(&my_charset_latin2_czech_cs);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
2005-01-12 02:58:15 -08:00
|
|
|
#ifdef HAVE_CHARSET_eucjpms
|
|
|
|
add_compiled_collation(&my_charset_eucjpms_japanese_ci);
|
|
|
|
add_compiled_collation(&my_charset_eucjpms_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_eucjpms_japanese_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_eucjpms_nopad_bin);
|
2005-01-11 17:45:36 -08:00
|
|
|
#endif
|
|
|
|
|
2003-10-06 22:56:34 +03:00
|
|
|
#ifdef HAVE_CHARSET_euckr
|
|
|
|
add_compiled_collation(&my_charset_euckr_korean_ci);
|
|
|
|
add_compiled_collation(&my_charset_euckr_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_euckr_korean_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_euckr_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_gb2312
|
|
|
|
add_compiled_collation(&my_charset_gb2312_chinese_ci);
|
|
|
|
add_compiled_collation(&my_charset_gb2312_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_gb2312_chinese_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_gb2312_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_gbk
|
|
|
|
add_compiled_collation(&my_charset_gbk_chinese_ci);
|
|
|
|
add_compiled_collation(&my_charset_gbk_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_gbk_chinese_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_gbk_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_sjis
|
|
|
|
add_compiled_collation(&my_charset_sjis_japanese_ci);
|
|
|
|
add_compiled_collation(&my_charset_sjis_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_sjis_japanese_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_sjis_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_tis620
|
|
|
|
add_compiled_collation(&my_charset_tis620_thai_ci);
|
|
|
|
add_compiled_collation(&my_charset_tis620_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_tis620_thai_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_tis620_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_ucs2
|
|
|
|
add_compiled_collation(&my_charset_ucs2_general_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_general_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_nopad_bin);
|
2012-01-23 13:07:10 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_general_mysql500_ci);
|
2005-02-18 12:58:16 +04:00
|
|
|
#ifdef HAVE_UCA_COLLATIONS
|
2007-06-07 17:55:55 +05:00
|
|
|
add_compiled_collation(&my_charset_ucs2_unicode_ci);
|
2013-10-02 15:04:07 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_german2_uca_ci);
|
2004-06-11 19:16:06 +05:00
|
|
|
add_compiled_collation(&my_charset_ucs2_icelandic_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_latvian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_romanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_slovenian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_polish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_estonian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_spanish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_swedish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_turkish_uca_ci);
|
2004-06-12 20:36:58 +05:00
|
|
|
add_compiled_collation(&my_charset_ucs2_czech_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_danish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_lithuanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_slovak_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_spanish2_uca_ci);
|
2004-07-07 15:20:23 +05:00
|
|
|
add_compiled_collation(&my_charset_ucs2_roman_uca_ci);
|
2004-09-13 12:07:01 +05:00
|
|
|
add_compiled_collation(&my_charset_ucs2_persian_uca_ci);
|
2005-09-12 19:35:50 +05:00
|
|
|
add_compiled_collation(&my_charset_ucs2_esperanto_uca_ci);
|
2005-12-23 14:20:00 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_hungarian_uca_ci);
|
2013-11-09 00:20:07 +02:00
|
|
|
add_compiled_collation(&my_charset_ucs2_croatian_mysql561_uca_ci);
|
2009-10-06 15:34:49 +05:00
|
|
|
add_compiled_collation(&my_charset_ucs2_sinhala_uca_ci);
|
2013-11-12 16:48:57 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_unicode_520_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_vietnamese_ci);
|
2009-11-30 14:42:24 +02:00
|
|
|
add_compiled_collation(&my_charset_ucs2_croatian_uca_ci);
|
2013-12-20 12:42:33 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_myanmar_uca_ci);
|
2016-05-30 16:56:29 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_thai_520_w2);
|
2016-09-23 14:19:07 +04:00
|
|
|
add_compiled_collation(&my_charset_ucs2_unicode_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_ucs2_unicode_520_nopad_ci);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
2005-02-18 12:58:16 +04:00
|
|
|
#endif
|
2003-10-06 22:56:34 +03:00
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_ujis
|
|
|
|
add_compiled_collation(&my_charset_ujis_japanese_ci);
|
|
|
|
add_compiled_collation(&my_charset_ujis_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_ujis_japanese_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_ujis_nopad_bin);
|
2003-10-06 22:56:34 +03:00
|
|
|
#endif
|
|
|
|
|
2019-06-28 09:05:12 +04:00
|
|
|
#ifdef HAVE_CHARSET_utf8mb3
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_general_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_general_nopad_ci);
|
2023-04-26 15:27:01 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb3_general1400_as_ci);
|
2019-06-28 09:05:12 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb3_bin);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_nopad_bin);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_general_mysql500_ci);
|
2005-04-08 13:56:48 +02:00
|
|
|
#ifdef HAVE_UTF8_GENERAL_CS
|
2019-06-28 09:05:12 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb3_general_cs);
|
2005-03-29 14:48:47 +05:00
|
|
|
#endif
|
2005-02-18 12:58:16 +04:00
|
|
|
#ifdef HAVE_UCA_COLLATIONS
|
2019-06-28 09:05:12 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb3_unicode_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_german2_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_icelandic_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_latvian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_romanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_slovenian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_polish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_estonian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_spanish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_swedish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_turkish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_czech_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_danish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_lithuanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_slovak_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_spanish2_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_roman_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_persian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_esperanto_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_hungarian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_croatian_mysql561_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_sinhala_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_unicode_520_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_vietnamese_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_croatian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_myanmar_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_thai_520_w2);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_unicode_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb3_unicode_520_nopad_ci);
|
2005-02-18 12:58:16 +04:00
|
|
|
#endif
|
2019-06-28 09:05:12 +04:00
|
|
|
#endif /* HAVE_CHARSET_utf8mb3 */
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_utf8mb4
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_general_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_general_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_nopad_bin);
|
2023-04-26 15:27:01 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_general1400_as_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#ifdef HAVE_UCA_COLLATIONS
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_unicode_ci);
|
2013-10-02 15:04:07 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_german2_uca_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_icelandic_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_latvian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_romanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_slovenian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_polish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_estonian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_spanish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_swedish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_turkish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_czech_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_danish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_lithuanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_slovak_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_spanish2_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_roman_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_persian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_esperanto_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_hungarian_uca_ci);
|
2013-11-09 00:20:07 +02:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_croatian_mysql561_uca_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_sinhala_uca_ci);
|
2013-11-12 16:48:57 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_unicode_520_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_vietnamese_ci);
|
2010-11-25 18:17:28 +01:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_croatian_uca_ci);
|
2013-12-20 12:42:33 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_myanmar_uca_ci);
|
2016-05-30 16:56:29 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_thai_520_w2);
|
2016-09-23 14:19:07 +04:00
|
|
|
add_compiled_collation(&my_charset_utf8mb4_unicode_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf8mb4_unicode_520_nopad_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#endif /* HAVE_UCA_COLLATIONS */
|
|
|
|
#endif /* HAVE_CHARSET_utf8mb4 */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_utf16
|
|
|
|
add_compiled_collation(&my_charset_utf16_general_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_bin);
|
2013-03-28 17:19:09 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16le_general_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16le_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_general_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_nopad_bin);
|
|
|
|
add_compiled_collation(&my_charset_utf16le_general_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16le_nopad_bin);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#ifdef HAVE_UCA_COLLATIONS
|
|
|
|
add_compiled_collation(&my_charset_utf16_unicode_ci);
|
2013-10-02 15:04:07 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_german2_uca_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_icelandic_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_latvian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_romanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_slovenian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_polish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_estonian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_spanish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_swedish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_turkish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_czech_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_danish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_lithuanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_slovak_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_spanish2_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_roman_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_persian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_esperanto_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_hungarian_uca_ci);
|
2013-11-09 00:20:07 +02:00
|
|
|
add_compiled_collation(&my_charset_utf16_croatian_mysql561_uca_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_sinhala_uca_ci);
|
2013-11-12 16:48:57 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_unicode_520_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_vietnamese_ci);
|
2010-11-25 18:17:28 +01:00
|
|
|
add_compiled_collation(&my_charset_utf16_croatian_uca_ci);
|
2013-12-20 12:42:33 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_myanmar_uca_ci);
|
2016-05-30 16:56:29 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_thai_520_w2);
|
2016-09-23 14:19:07 +04:00
|
|
|
add_compiled_collation(&my_charset_utf16_unicode_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf16_unicode_520_nopad_ci);
|
2012-07-31 19:29:07 +02:00
|
|
|
#endif /* HAVE_UCA_COLLATIONS */
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#endif /* HAVE_CHARSET_utf16 */
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_CHARSET_utf32
|
|
|
|
add_compiled_collation(&my_charset_utf32_general_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_bin);
|
2016-09-06 12:50:02 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_general_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_nopad_bin);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#ifdef HAVE_UCA_COLLATIONS
|
|
|
|
add_compiled_collation(&my_charset_utf32_unicode_ci);
|
2013-10-02 15:04:07 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_german2_uca_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_icelandic_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_latvian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_romanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_slovenian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_polish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_estonian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_spanish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_swedish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_turkish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_czech_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_danish_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_lithuanian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_slovak_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_spanish2_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_roman_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_persian_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_esperanto_uca_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_hungarian_uca_ci);
|
2013-11-09 00:20:07 +02:00
|
|
|
add_compiled_collation(&my_charset_utf32_croatian_mysql561_uca_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_sinhala_uca_ci);
|
2013-11-12 16:48:57 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_unicode_520_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_vietnamese_ci);
|
2010-11-25 18:17:28 +01:00
|
|
|
add_compiled_collation(&my_charset_utf32_croatian_uca_ci);
|
2013-12-20 12:42:33 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_myanmar_uca_ci);
|
2016-05-30 16:56:29 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_thai_520_w2);
|
2016-09-23 14:19:07 +04:00
|
|
|
add_compiled_collation(&my_charset_utf32_unicode_nopad_ci);
|
|
|
|
add_compiled_collation(&my_charset_utf32_unicode_520_nopad_ci);
|
Backporting WL#1213
config/ac-macros/character_sets.m4:
- Adding configure definitions for utf8mb4, utf16, utf32
include/config-win.h:
- Enabling utf8mb4, utf16, utf32 in Windows build
include/m_ctype.h:
- Adding new flags
- Adding new shared functions prototypes
mysql-test/include/ctype_datetime.inc:
- Adding test to check that datetime functions
work with "real" multibyte character sets.
mysql-test/include/ctype_like.inc:
- Adding LIKE tests
mysql-test/include/have_utf16.inc:
New file
mysql-test/include/have_utf32.inc:
New file
mysql-test/include/have_utf8mb4.inc:
New file
mysql-test/r/ctype_ldml.result:
- Adding tests for utf8mb4, utf16, utf32
mysql-test/r/ctype_many.result:
- Adding tests to check superset/subset relations
between all Unicode character sets.
mysql-test/r/ctype_utf16.result:
New file
mysql-test/r/ctype_utf16_uca.result:
New file
mysql-test/r/ctype_utf32.result:
New file
mysql-test/r/ctype_utf32_uca.result:
New file
mysql-test/r/ctype_utf8.result:
- Adding tests for utf8mn3 alias
mysql-test/r/ctype_utf8mb4.result:
- Adding tests for utf8mb4
mysql-test/r/have_utf16.require:
New file
mysql-test/r/have_utf32.require:
New file
mysql-test/r/have_utf8mb4.require:
New file
mysql-test/std_data/Index.xml:
- Adding tests for loadable utf8m4, utf16, utf32 collations
mysql-test/suite/sys_vars/r/character_set_client_basic.result:
- Adding tests for utf16, utf32.
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_connection_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_database_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/r/character_set_results_basic.result:
- Fixing new number of character sets
mysql-test/suite/sys_vars/t/character_set_client_basic.test:
- Adding tests for new character sets
mysql-test/suite/sys_vars/t/character_set_connection_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_database_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_filesystem_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/suite/sys_vars/t/character_set_results_basic.test:
- Adding dependency on utf8mb4, utf16, utf32
mysql-test/t/ctype_ldml.test:
- Adding tests for dynamic utf8mb4, utf16, utf32 collations
mysql-test/t/ctype_many.test:
- Adding tests to check superset/subset relations
between all Unicode character sets
mysql-test/t/ctype_utf16.test:
New file
mysql-test/t/ctype_utf16_uca.test:
New file
mysql-test/t/ctype_utf32.test:
New file
mysql-test/t/ctype_utf32_uca.test:
New file
mysql-test/t/ctype_utf8.test:
- Adding tests for utf8mb4 alias
mysql-test/t/ctype_utf8mb4.test:
New file
mysys/charset-def.c:
- Adding initialization of utf8mb4, utf16, utf32 built-int collations
mysys/charset.c:
- Adding initialization of utf8mb4, utf16, utf32 dynamic collations
sql/field.cc:
- Fixing "truncated" error with datetime functions:
Force conversion in case of non-ascii character sets.
sql/item.cc:
- Adding superset/subset relation check for utf8mb4/utf8
sql/item_strfunc.cc:
- Fixing a problem with CHAR(x USING utf32)
sql/sql_string.cc:
- Fixing problems with zero padding for UTF32
sql/sql_table.cc:
- Fixing buffer size, to make utf32 comma fit.
strings/ctype-mb.c:
- Making handlers for multi-byte binary collations public
strings/ctype-uca.c:
- Adding definitions for utf8mb4, utf16, utf32 UCA collations
strings/ctype-ucs2.c:
- Adding functions which are shared between ucs2, utf16, utf32
- Ading utf16 implementation
- Adding utf32 implementation
strings/ctype-utf8.c:
- Adding functions shared between utf8 and utf8mb4
- Adding implementation of utf8mb4
2010-02-24 13:15:34 +04:00
|
|
|
#endif /* HAVE_UCA_COLLATIONS */
|
|
|
|
#endif /* HAVE_CHARSET_utf32 */
|
2003-10-06 22:56:34 +03:00
|
|
|
|
|
|
|
/* Copy compiled charsets */
|
2020-08-22 02:08:59 +03:00
|
|
|
for (cs=compiled_charsets; cs->coll_name.str; cs++)
|
2020-07-20 19:26:31 +03:00
|
|
|
add_compiled_extra_collation((struct charset_info_st *) cs);
|
MDEV-27009 Add UCA-14.0.0 collations
- Added one neutral and 22 tailored (language specific) collations based on
Unicode Collation Algorithm version 14.0.0.
Collations were added for Unicode character sets
utf8mb3, utf8mb4, ucs2, utf16, utf32.
Every tailoring was added with four accent and case
sensitivity flag combinations, e.g:
* utf8mb4_uca1400_swedish_as_cs
* utf8mb4_uca1400_swedish_as_ci
* utf8mb4_uca1400_swedish_ai_cs
* utf8mb4_uca1400_swedish_ai_ci
and their _nopad_ variants:
* utf8mb4_uca1400_swedish_nopad_as_cs
* utf8mb4_uca1400_swedish_nopad_as_ci
* utf8mb4_uca1400_swedish_nopad_ai_cs
* utf8mb4_uca1400_swedish_nopad_ai_ci
- Introducing a conception of contextually typed named collations:
CREATE DATABASE db1 CHARACTER SET utf8mb4;
CREATE TABLE db1.t1 (a CHAR(10) COLLATE uca1400_as_ci);
The idea is that there is no a need to specify the character set prefix
in the new collation names. It's enough to type just the suffix
"uca1400_as_ci". The character set is taken from the context.
In the above example script the context character set is utf8mb4.
So the CREATE TABLE will make a column with the collation
utf8mb4_uca1400_as_ci.
Short collations names can be used in any parts of the SQL syntax
where the COLLATE clause is understood.
- New collations are displayed only one time
(without character set combinations) by these statements:
SELECT * FROM INFORMATION_SCHEMA.COLLATIONS;
SHOW COLLATION;
For example, all these collations:
- utf8mb3_uca1400_swedish_as_ci
- utf8mb4_uca1400_swedish_as_ci
- ucs2_uca1400_swedish_as_ci
- utf16_uca1400_swedish_as_ci
- utf32_uca1400_swedish_as_ci
have just one entry in INFORMATION_SCHEMA.COLLATIONS and SHOW COLLATION,
with COLLATION_NAME equal to "uca1400_swedish_as_ci", which is the suffix
without the character set name:
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLLATIONS
WHERE COLLATION_NAME LIKE '%uca1400_swedish_as_ci';
+-----------------------+
| COLLATION_NAME |
+-----------------------+
| uca1400_swedish_as_ci |
+-----------------------+
Note, the behaviour of old collations did not change.
Non-unicode collations (e.g. latin1_swedish_ci) and
old UCA-4.0.0 collations (e.g. utf8mb4_unicode_ci)
are still displayed with the character set prefix, as before.
- The structure of the table INFORMATION_SCHEMA.COLLATIONS was changed.
The NOT NULL constraint was removed from these columns:
- CHARACTER_SET_NAME
- ID
- IS_DEFAULT
and from the corresponding columns in SHOW COLLATION.
For example:
SELECT COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT
FROM INFORMATION_SCHEMA.COLLATIONS
WHERE COLLATION_NAME LIKE '%uca1400_swedish_as_ci';
+-----------------------+--------------------+------+------------+
| COLLATION_NAME | CHARACTER_SET_NAME | ID | IS_DEFAULT |
+-----------------------+--------------------+------+------------+
| uca1400_swedish_as_ci | NULL | NULL | NULL |
+-----------------------+--------------------+------+------------+
The NULL value in these columns now means that the collation
is applicable to multiple character sets.
The behavioir of old collations did not change.
Make sure your client programs can handle NULL values in these columns.
- The structure of the table
INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY was changed.
Three new NOT NULL columns were added:
- FULL_COLLATION_NAME
- ID
- IS_DEFAULT
New collations have multiple entries in COLLATION_CHARACTER_SET_APPLICABILITY.
The column COLLATION_NAME contains the collation name without the character
set prefix. The column FULL_COLLATION_NAME contains the collation name with
the character set prefix.
Old collations have full collation name in both FULL_COLLATION_NAME and
COLLATION_NAME.
SELECT COLLATION_NAME, FULL_COLLATION_NAME, CHARACTER_SET_NAME, ID, IS_DEFAULT
FROM INFORMATION_SCHEMA.COLLATION_CHARACTER_SET_APPLICABILITY
WHERE FULL_COLLATION_NAME RLIKE '^(utf8mb4|latin1).*swedish.*ci$';
+-----------------------------+-------------------------------------+--------------------+------+------------+
| COLLATION_NAME | FULL_COLLATION_NAME | CHARACTER_SET_NAME | ID | IS_DEFAULT |
+-----------------------------+-------------------------------------+--------------------+------+------------+
| latin1_swedish_ci | latin1_swedish_ci | latin1 | 8 | Yes |
| latin1_swedish_nopad_ci | latin1_swedish_nopad_ci | latin1 | 1032 | |
| utf8mb4_swedish_ci | utf8mb4_swedish_ci | utf8mb4 | 232 | |
| uca1400_swedish_ai_ci | utf8mb4_uca1400_swedish_ai_ci | utf8mb4 | 2368 | |
| uca1400_swedish_as_ci | utf8mb4_uca1400_swedish_as_ci | utf8mb4 | 2370 | |
| uca1400_swedish_nopad_ai_ci | utf8mb4_uca1400_swedish_nopad_ai_ci | utf8mb4 | 2372 | |
| uca1400_swedish_nopad_as_ci | utf8mb4_uca1400_swedish_nopad_as_ci | utf8mb4 | 2374 | |
+-----------------------------+-------------------------------------+--------------------+------+------------+
- Other INFORMATION_SCHEMA queries:
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.COLUMNS;
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.PARAMETERS;
SELECT TABLE_COLLATION FROM INFORMATION_SCHEMA.TABLES;
SELECT DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA;
SELECT COLLATION_NAME FROM INFORMATION_SCHEMA.ROUTINES;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.EVENTS;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.EVENTS;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.ROUTINES;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.ROUTINES;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.TRIGGERS;
SELECT DATABASE_COLLATION FROM INFORMATION_SCHEMA.TRIGGERS;
SELECT COLLATION_CONNECTION FROM INFORMATION_SCHEMA.VIEWS;
display full collation names, including character sets prefix,
for all collations, including new collations.
Corresponding SHOW commands also display full collation names
in collation related columns:
SHOW CREATE TABLE t1;
SHOW CREATE DATABASE db1;
SHOW TABLE STATUS;
SHOW CREATE FUNCTION f1;
SHOW CREATE PROCEDURE p1;
SHOW CREATE EVENT ev1;
SHOW CREATE TRIGGER tr1;
SHOW CREATE VIEW;
These INFORMATION_SCHEMA queries and SHOW statements may change in
the future, to display show collation names.
2021-11-28 16:55:15 +04:00
|
|
|
|
|
|
|
if (my_uca1400_collation_definitions_add())
|
|
|
|
return TRUE;
|
2003-10-06 22:56:34 +03:00
|
|
|
|
|
|
|
return FALSE;
|
|
|
|
}
|