Commit 36544570 authored by marko's avatar marko

branches/5.1: row_mysql_store_col_in_innobase_format(): Correct a misleading

comment. In the UTF-8 encoding, ASCII takes 1 byte per character, while
the "latin1" character set (normally ISO-8859-1, but in MySQL it actually
refers to the Windows Code Page 1252 a.k.a. CP1252, WinLatin1)
takes 1 to 3 bytes (1 to 2 bytes for the ISO-8859-1 subset).
parent b2338191
...@@ -342,7 +342,7 @@ row_mysql_store_col_in_innobase_format( ...@@ -342,7 +342,7 @@ row_mysql_store_col_in_innobase_format(
/* In some cases we strip trailing spaces from UTF-8 and other /* In some cases we strip trailing spaces from UTF-8 and other
multibyte charsets, from FIXED-length CHAR columns, to save multibyte charsets, from FIXED-length CHAR columns, to save
space. UTF-8 would otherwise normally use 3 * the string length space. UTF-8 would otherwise normally use 3 * the string length
bytes to store a latin1 string! */ bytes to store an ASCII string! */
/* We assume that this CHAR field is encoded in a /* We assume that this CHAR field is encoded in a
variable-length character set where spaces have variable-length character set where spaces have
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment