• bar@mysql.com/bar.intranet.mysql.r18.ru's avatar
    Bug#22646 LC_TIME_NAMES: Assignment to non-UTF8 target fails · 413d1865
    Problem: After introducing of LC_TIME_NAMES variable,  the 
    function date_format() can return international non-ascii
    characters in month and weekday names. Thus, it cannot return
    a binary string anymore, because inserting a result of date_format()
    into a column with non-utf8 character set produces garbage.
    Fix: date_format() now returns a character string, using
    "collation_connection" to detect character set and collation
    for the returned value. This allows to insert
    results of date_format() properly into columns with
    various character sets.
    413d1865
item_timefunc.cc 78.8 KB