#17513 closed Bug (fixed)
MySQL returns OperationalError instead of DatabaseError
| Reported by: | Claude Paroz | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | mysql |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
With other Django database backends, it seems that database errors are always converted to django.db.utils errors. With the MySQL backend, you may obtain OperationalError (specific to the backend).
Attachments (1)
Change History (4)
by , 14 years ago
| Attachment: | 17513-1.diff added |
|---|
comment:1 by , 14 years ago
| Has patch: | set |
|---|---|
| Keywords: | mysql added |
Note:
See TracTickets
for help on using tickets.
Fix error raised and test