mirror of
https://github.com/MariaDB/server.git
synced 2025-12-21 11:01:08 +03:00
Apply InnoDB-specific parts of the fix for bug #9680, wrong error from
cascading update.
This commit is contained in:
@@ -473,8 +473,9 @@ handle_new_error:
|
||||
ut_a(err != DB_SUCCESS);
|
||||
|
||||
trx->error_state = DB_SUCCESS;
|
||||
|
||||
if (err == DB_DUPLICATE_KEY) {
|
||||
|
||||
if ((err == DB_DUPLICATE_KEY)
|
||||
|| (err == DB_FOREIGN_DUPLICATE_KEY)) {
|
||||
if (savept) {
|
||||
/* Roll back the latest, possibly incomplete
|
||||
insertion or update */
|
||||
|
||||
Reference in New Issue
Block a user