• bar@mysql.com's avatar
    As it is wrong and confusing to associate any · 5543f312
    bar@mysql.com authored
    character set with NULL, @A should be latin2
    after this query sequence:
    
       SET @A=_latin2'string';
       SET @A=NULL;
    
    I.e. the second query should not change the charset
    to the current default value, but should keep the
    original value assigned during the first query.
    In order to do it, we don't copy charset
    from the argument if the argument is NULL
    and the variable has previously been initialized.
    5543f312
ps_7ndb.result 102 KB