#11209: connection.queries reports different SQL query than MySQL log
------------------------------------+---------------------------------------
          Reporter:  creecode       |         Owner:  kmtracey
            Status:  assigned       |     Milestone:          
         Component:  Documentation  |       Version:  1.0     
        Resolution:                 |      Keywords:          
             Stage:  Accepted       |     Has_patch:  0       
        Needs_docs:  0              |   Needs_tests:  0       
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by kmtracey):

  * status:  new => assigned
  * needs_better_patch:  => 0
  * component:  Database layer (models, ORM) => Documentation
  * needs_tests:  => 0
  * owner:  nobody => kmtracey
  * needs_docs:  => 0
  * stage:  Unreviewed => Accepted

Comment:

 Yes, the connection.queries log doesn't necessarily include quoting.
 Quoting is done by the backend, and if the backend does not provide a
 method to retrieve the exact sql sent to the DB for the last query
 (psycopg2 seems to be the only one that does), then the queries are logged
 without quoting.  Changing component to doc, as this behavior is known and
 expected, but should probably be mentioned in the doc as it comes up and
 confuses people from time to time.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11209#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to