• unknown's avatar
    Fix: create table t1 (a char(10) character set cp1251) SELECT _koi8r'blabla' as a · 0960c3eb
    unknown authored
    The above query created a field of koi8r charset, not cp1251
    
    Change:
    CREATE TABLE a (a CHAR(1) CHARACTER SET utf8) 
    Length now means character length, not byte length.
    The above creates a field that guarantees can store a multibyte value
    1 character long. For utf8 the above creates a field that can store
    3 bytes.
    
    
    0960c3eb
sql_parse.cc 128 KB