bugfix: storage engine might return a negative error code, but it shouldn't

be ignored on return
This commit is contained in:
Sergei Golubchik 2013-08-26 21:14:34 +04:00
parent 38e2340a8e
commit 214c43ba96

View File

@ -7531,11 +7531,13 @@ copy_data_between_tables(THD *thd, TABLE *from,TABLE *to,
AUTO_INCREMENT_FLAG))
err_msg= ER(ER_DUP_ENTRY_AUTOINCREMENT_CASE);
to->file->print_keydup_error(key_nr, err_msg, MYF(0));
error= 1;
break;
}
}
to->file->print_error(error,MYF(0));
error= 1;
break;
}
to->file->restore_auto_increment(prev_insert_id);