#7862: query result set should use same query object passed into query method.
-------------------------------------------+--------------------------------
          Reporter:  [EMAIL PROTECTED]  |         Owner:  nobody
            Status:  closed                |     Milestone:        
         Component:  Database wrapper      |       Version:  SVN   
        Resolution:  duplicate             |      Keywords:        
             Stage:  Unreviewed            |     Has_patch:  0     
        Needs_docs:  0                     |   Needs_tests:  0     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Comment (by [EMAIL PROTECTED]):

 But I always not need the full power of identity mapping like java
 hibernate does.

 The most situation that need identity mapping is:
 {{{
 obj = query_for_obj(xxx=model_instance...)
 # now do some thing on obj or pass obj to other_functions
 def other_functions(obj):
     obj2 = query_for_obj2(obj=obj)
     # here id(obj2.obj) should equal to id(obj), so obj2.obj.save() can
 work.
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7862#comment:3>
Django Code <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