• pem@mysql.com's avatar
    Fixed BUG#13941: replace() string fuction behaves badly inside stored · ca5e435f
    pem@mysql.com authored
                     procedure
      For some functions returning strings (like "replace" and "ifnull" - where
      val_str() is returning a pointer into one of the parameters) - we ended
      up with a dangling pointer after the new operator destroyed the reuse item
      in the eval function.
      A working, if not very elegant, solution is to simply copy the string in
      such cases.
    ca5e435f
sp.test 90.9 KB