Skip to content

Commit

Permalink
Merge pull request #1112 from CBroz1/master
Browse files Browse the repository at this point in the history
Add MySQL 8 error code for cascade delete
  • Loading branch information
dimitri-yatsenko authored Nov 7, 2023
2 parents 10511e7 + ecabf57 commit b63900b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datajoint/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def translate_query_error(client_error, query):
# Integrity errors
if err == 1062:
return errors.DuplicateError(*args)
if err == 1217: # MySQL 8 error code
return errors.IntegrityError(*args)
if err == 1451:
return errors.IntegrityError(*args)
if err == 1452:
Expand Down

0 comments on commit b63900b

Please sign in to comment.