• istruewing@chilla.local's avatar
    Bug#28158 - table->read_set is set incorrectly, · 3a6b8d38
    istruewing@chilla.local authored
            causing wrong error message in Falcon
    
    An error message about a duplicate key could show a wrong key
    value when not all columns of the key were used to select the
    rows for update.
    
    Some storage engines return a record with only the selected
    columns filled.
    
    This is fixed by re-reading the record with a read_set which
    includes all columns of the duplicate key after a duplicate key
    error happens and before the error message is printed.
    3a6b8d38
sql_update.cc 60.6 KB