• Sergey Glukhov's avatar
    Bug#46815 CONCAT_WS returning wrong data · 3303d603
    Sergey Glukhov authored
    The problem is that argument buffer can be used as result buffer
    and it leads to argument value change.
    The fix is to use 'old buffer' as result buffer only
    if first argument is not constant item.
    
    
    mysql-test/r/func_str.result:
      test result
    mysql-test/t/func_str.test:
      test case
    sql/item_strfunc.cc:
      The problem is that argument buffer can be used as result buffer
      and it leads to argument value change.
      The fix is to use 'old buffer' as result buffer only
      if first argument is not constant item.
    3303d603
func_str.test 42.2 KB