Skip to content

Commit

Permalink
Add error code
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Oct 25, 2023
1 parent 10511e7 commit ecabf57
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 ecabf57

Please sign in to comment.