• Georgi Kodinov's avatar
    Bug #51850: crash/memory overlap when using load data infile and set · a9a2ceae
    Georgi Kodinov authored
      col equal to itself!
    
    There's no need to copy the value of a field into itself.
    While generally harmless (except for some performance penalties)
    it may be dangerous when the copy code doesn't expect this.
    Fixed by checking if the source field is the same as the destination
    field before copying the data.
    Note that we must preserve the order of assignment of the null 
    flags (hence the null_value assignment addition).
    a9a2ceae
loaddata.test 16 KB