• Michael Widenius's avatar
    Remove valgrind warnings from Item_str_concat · 6c97e856
    Michael Widenius authored
    This warning come from a copy() operation of type:
    memcpy(ptr, ptr+A, B), which is safe but produces a warning
    when run with valgrind.
    
    To avoid the warning, I added copy_or_move() method which uses
    memmove() instead of memcpy().
    
    In 10.3 the change in item_strfunc::Item_func_concat() has to be mirroed
    in Item_func_concat_oracle() to avoid future valgrind warnings.
    6c97e856
sql_string.cc 32.6 KB