Skip to main content

Module charset

Module charset 

Source
Expand description

MySQL charset names and the collation each one defaults to.

v7.39.2 — moved here from spg-engine’s collate because the PARSER needs it: _utf8mb4'x' is a charset introducer only when the word after the underscore names a charset, and deciding that is parsing. The engine reads the same table through this module rather than keeping a second copy — two lists of one fact is how the surfaces in this release came to disagree in the first place.

Constants§

MYSQL_CHARSET_DEFAULT_COLLATION
Do trailing spaces count in a comparison under this collation?
MYSQL_COLLATIONS
Every collation MySQL 9.7.2 or MariaDB 12.3.3 serves, read from their own information_schema.collations — 575 names, sorted for binary_search.

Functions§

charset_default_collation
The collation SET NAMES <charset> selects, or None for a charset this build does not know. An unknown name is not silently mapped to a default: that is how a session ends up padding differently from what it was told.
is_mysql_collation
Is this a collation name MySQL or MariaDB serves?