• Jorgen Loland's avatar
    Bug#57882 - Item_func_conv_charset::val_str(String*): · 64bee6fd
    Jorgen Loland authored
                Assertion `fixed == 1' failed
    
    (also fixes duplicate bug 57515)
    
    agg_item_set_converter() (item.cc) handles conversion of 
    character sets by creating a new Item. fix_fields() is then 
    called on this newly created item. Prior to this patch, it was
    not checked whether fix_fields() was successful or not. Thus, 
    agg_item_set_converter() would return success even when an 
    error occured. This patch makes it return error (TRUE) if 
    fix_fields() fails.
    
    mysql-test/r/errors.result:
      Add test for BUG#57882
    mysql-test/t/errors.test:
      Add test for BUG#57882
    sql/item.cc:
      Make agg_item_set_converter() return with error if fix_fields() 
      on the newly created converted item fails.
    64bee6fd
errors.result 5.29 KB