mariadb/client
Alexander Barkov 75f25e4ca7 MDEV-30164 System variable for default collations
This patch adds a way to override default collations
(or "character set collations") for desired character sets.

The SQL standard says:
> Each collation known in an SQL-environment is applicable to one
> or more character sets, and for each character set, one or more
> collations are applicable to it, one of which is associated with
> it as its character set collation.

In MariaDB, character set collations has been hard-coded so far,
e.g. utf8mb4_general_ci has been a hard-coded character set collation
for utf8mb4.

This patch allows to override (globally per server, or per session)
character set collations, so for example, uca1400_ai_ci can be set as a
character set collation for Unicode character sets
(instead of compiled xxx_general_ci).

The array of overridden character set collations is stored in a new
(session and global) system variable @@character_set_collations and
can be set as a comma separated list of charset=collation pairs, e.g.:

SET @@character_set_collations='utf8mb3=uca1400_ai_ci,utf8mb4=uca1400_ai_ci';

The variable is empty by default, which mean use the hard-coded
character set collations (e.g. utf8mb4_general_ci for utf8mb4).

The variable can also be set globally by passing to the server startup command
line, and/or in my.cnf.
2023-07-17 14:56:17 +04:00
..
async_example.c MDEV-25602 get rid of __WIN__ in favor of standard _WIN32 2021-06-06 13:21:03 +02:00
client_metadata.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
client_priv.h Merge 10.8 into 10.9 2023-04-28 13:39:33 +03:00
CMakeLists.txt Merge remote-tracking branch 'upstream/10.4' into 10.5 2021-09-10 17:16:18 +03:00
completion_hash.cc Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
echo.c Fix typos in the codebase. 2022-08-09 18:41:09 +03:00
mariadb-conv.cc unify client/tool version string 2023-01-19 12:39:28 +01:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc Merge 10.11 into 11.0 2023-07-04 08:20:20 +03:00
mysql_plugin.c Merge 10.11 into 11.0 2023-04-17 16:50:01 +03:00
mysql_upgrade.c Merge 11.0 into 11.1 2023-06-28 09:38:59 +03:00
mysqladmin.cc MDEV-15736 Remove mariadb-admin --vertical 2023-07-12 10:58:43 +10:00
mysqlbinlog.cc MDEV-30164 System variable for default collations 2023-07-17 14:56:17 +04:00
mysqlcheck.c Merge 10.11 into 11.0 2023-07-04 08:20:20 +03:00
mysqldump.c Merge 10.11 into 11.0 2023-07-04 08:20:20 +03:00
mysqlimport.c Merge 10.11 into 11.0 2023-07-04 08:20:20 +03:00
mysqlshow.c Merge 10.11 into 11.0 2023-07-04 08:20:20 +03:00
mysqlslap.c Merge 10.11 into 11.0 2023-07-04 08:20:20 +03:00
mysqltest.cc Merge 10.11 into 11.0 2023-04-26 18:50:15 +03:00
readline.cc MDEV-27142 disable text mode for Windows stdio by default 2022-07-18 13:18:03 +02:00