mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[master] Fixed #481 merge error
This commit is contained in:
@@ -478,7 +478,8 @@ public:
|
||||
|
||||
if (status != 0) {
|
||||
// Failure: check for the special case of duplicate entry.
|
||||
if (mysql_errno(mysql_) == ER_DUP_ENTRY) {
|
||||
if ((mysql_errno(mysql_) == ER_DUP_ENTRY) ||
|
||||
(mysql_errno(mysql_) == ER_FOREIGN_DUPLICATE_KEY_WITH_CHILD_INFO)) {
|
||||
isc_throw(DuplicateEntry, "Database duplicate entry error");
|
||||
}
|
||||
checkError(status, index, "unable to execute");
|
||||
|
Reference in New Issue
Block a user