--
Ticket URL: <https://code.djangoproject.com/ticket/25092>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
According to #17741, `str(query)` "isn't intended to give you valid SQL,
just a basic representation of the query." Therefore, not sure it's
feasible or practical to implement this.
--
Ticket URL: <https://code.djangoproject.com/ticket/25092#comment:1>
Comment (by coldmind):
Well, I can investigate if it is feasible.
The point about "a basic representation of the query" seems strange for
me. Why should we have a tool that differs from reality?
The practical thing is to have ability to get actual query without looking
to logs.
--
Ticket URL: <https://code.djangoproject.com/ticket/25092#comment:2>
Comment (by timgraham):
As the linked ticket says, "There isn't [a way to get the actual query],
because Django never actually interpolates the parameters: it sends the
query and the parameters separately to the database adapter, which
performs the appropriate operations."
--
Ticket URL: <https://code.djangoproject.com/ticket/25092#comment:3>
* status: new => closed
* resolution: => wontfix
Comment:
Feel free to reopen if you can come up with something more accurate than
the current situation.
--
Ticket URL: <https://code.djangoproject.com/ticket/25092#comment:4>