• bar@mysql.com's avatar
    Bug#18691: Converting number to UNICODE string returns invalid result. · 45293fc3
    bar@mysql.com authored
    Conversion from int and real numbers to UCS2 didn't work fine: 
    CONVERT(100, CHAR(50) UNICODE)
    CONVERT(103.9, CHAR(50) UNICODE)
    
    The problem appeared because numbers have binary charset, so,
    simple charset recast binary->ucs2 was performed
    instead of real conversion.
    
    Fixed to make numbers pretend to be non-binary.
    45293fc3
item_timefunc.cc 73.4 KB