Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise OperationalError on deadlocks #186

Open
MarkBird opened this issue Nov 8, 2018 · 0 comments
Open

Raise OperationalError on deadlocks #186

MarkBird opened this issue Nov 8, 2018 · 0 comments

Comments

@MarkBird
Copy link

MarkBird commented Nov 8, 2018

Using MySQL or Postgres for DB backend, if a deadlock occurs, the exception raised is django.db.utils.OperationalError. However, using django-pyodbc-azure and SQL Server, the error is the base django.db.utils.Error.

For consistency can we raise OperationalError if a deadlock occurs (error code = '40001')?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant