django-devserver
django-devserver copied to clipboard
sql logger should quote query params
It would be nice if the sql logger would quote params in the printed queries to make it easier to copy/paste into a CLI client for closer optimization/examination.
Eg instead of:
sql SELECT ...
FROM foo
WHERE foo.name = bob
sql Found 1 matching rows
it would print:
sql SELECT ...
FROM foo
WHERE foo.name = "bob"
sql Found 1 matching rows
In addition to making this easier to reuse, it would fix an actual bug in the display where data values are processed as if they're part of the actual query:
NATIONAL-archives-AND-records-administration
instead of:
'national-archives-and-records-administration'