#12611: Incorrect quoting in QuerySet.query.__str__()
---------------------------------------------------+------------------------
          Reporter:  jmcvetta                      |         Owner:  nobody     
            Status:  closed                        |     Milestone:             
         Component:  Database layer (models, ORM)  |       Version:  SVN        
        Resolution:  wontfix                       |      Keywords:  sql quoting
             Stage:  Someday/Maybe                 |     Has_patch:  0          
        Needs_docs:  0                             |   Needs_tests:  0          
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by russellm):

  * status:  new => closed
  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0
  * resolution:  => wontfix
  * stage:  Unreviewed => Someday/Maybe

Comment:

 I completely acknowledge the problem, but it is non-trivial to fix.
 Database quoting is actually done by the database cursor at the time of
 query execution. What is returned by QuerySet.query is the best attempt at
 rendering the query as it will be executed, but there's no guarantee it
 will be completely accurate.

 Marking wontfix due to the absence of a workable solution. If anyone can
 propose something (that doesn't involve reimplementing the full quoting
 behavior of a DB cursor), please reopen with that suggestion.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12611#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