1
0
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:
osku
2006-02-10 09:16:35 +00:00
parent 67be8fe939
commit 48eb9e46a1
6 changed files with 73 additions and 2 deletions

View File

@@ -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 */