#36112: DatabaseOperations.format_debug_sql() crashes when query fails to execute
on some backends
-----------------------------------+--------------------------------------
Reporter: Jacob Walls | Owner: Tim Graham
Type: Bug | Status: assigned
Component: Testing framework | Version: dev
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Mariusz Felisiak):
> ... or `DatabaseOperations.last_executed_query()` subclass
implementations could fall back to
`BaseDatabaseOperations.last_executed_query()` rather than returning
`None`.
This sound like a great idea for me.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36112#comment:7>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.