I'd like to clarify the reasoning, since I think it pertains to a
larger issue. My understanding of Adrian's comment is that there
currently is no infrastructure in Django to escape special characters
in strings in a way that is specific to each backend. Admittedly, I
haven't dug in very far yet, but that seems like an odd omission.
The question is:
Does this reflect a policy- 'we do not concern ourselves with quoting
and leave that task to the backend' or is it rather a simple statement
of reality, which might change in the future?
So if all the following were true, would this be acceptable?
1. Each backend class grew a escapeChars() method that worked
correctly.
2. My original change used the appropriate method when composing the
sql statements.
3. We comment the function to state it is only to be used for sql
string composition.