diff options
| author | Tatiana A. Nurnberg <azundris@mysql.com> | 2010-11-11 07:34:14 +0000 |
|---|---|---|
| committer | Tatiana A. Nurnberg <azundris@mysql.com> | 2010-11-11 07:34:14 +0000 |
| commit | b56f1d8283333d2cf43bbce30fd2af78d4eaf51c (patch) | |
| tree | 662f28f30d7f3a3860628de844ebe2da0361b269 /strings | |
| parent | d47e8991cb7c950d5cf22b864f3dbd257b2b2dad (diff) | |
| download | mariadb-git-b56f1d8283333d2cf43bbce30fd2af78d4eaf51c.tar.gz | |
Bug #49752: 2469.126.2 unintentionally breaks authentication against
MySQL 5.1 server
Server used to clip overly long user-names. This was presumably lost
when code was made UTF8-clean.
Now we emulate the behaviour for backward compatibility, but UTF8-ly
correct.
Diffstat (limited to 'strings')
| -rw-r--r-- | strings/CHARSET_INFO.txt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/strings/CHARSET_INFO.txt b/strings/CHARSET_INFO.txt index bb8e40025c7..6f0a810be37 100644 --- a/strings/CHARSET_INFO.txt +++ b/strings/CHARSET_INFO.txt @@ -208,14 +208,11 @@ charpos() - calculates the offset of the given position in the string. Used in SQL functions LEFT(), RIGHT(), SUBSTRING(), INSERT() -well_formed_length() - - finds the length of correctly formed multi-byte beginning. - Used in INSERTs to cut a beginning of the given string - which is - a) "well formed" according to the given character set. +well_formed_len() + - returns length of a given multi-byte string in bytes + Used in INSERTs to shorten the given string so it + a) is "well formed" according to the given character set b) can fit into the given data type - Terminates the string in the good position, taking in account - multi-byte character boundaries. lengthsp() - returns the length of the given string without trailing spaces. |
