• Sergei Golubchik's avatar
    MDEV-7150 Wrong auto increment values on INSERT .. ON DUPLICATE KEY UPDATE... · 724dbaab
    Sergei Golubchik authored
    MDEV-7150 Wrong auto increment values on INSERT .. ON DUPLICATE KEY UPDATE when the inserted columns include NULL in an auto-increment column
    
    when restoring auto-inc value in INSERT ... ON DUPLICATE KEY UPDATE, take into account that
    1. it may be changed in the UPDATE clause (old code did that)
    2. it may be changed in the INSERT clause and then cause a dup key (old code missed that)
    724dbaab
insert_update_autoinc-7150.result 225 Bytes