#3820: DebugCursorWrapper not working on Oracle
--------------------------------------------------+-------------------------
   Reporter:  Ben Khoo <[EMAIL PROTECTED]>        |                Owner:  
jacob        
     Status:  new                                 |            Component:  
Uncategorized
    Version:  other branch                        |           Resolution:       
        
   Keywords:  Oracle DebugCursorWrapper fetchall  |                Stage:  
Unreviewed   
  Has_patch:  1                                   |           Needs_docs:  0    
        
Needs_tests:  0                                   |   Needs_better_patch:  0    
        
--------------------------------------------------+-------------------------
Changes (by bouldersprinters):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 The problem is that some of the Oracle backend code assumed cursors to be
 iterable and has code like:
 for row in cursor:
     pass
 
 Supporting .next() and .__iter__() is actually an optional extension in
 the python DB-API 2.0.  And once this change was made, we discovered the
 CursorDebugWrapper doesn't support either method.  I made a quick fix in
 the boulder-oracle-sprint branch, and I'll make a more proper fix soon
 using your patch as a basis (there are a couple other locations this crops
 up.)
 
 Thank you so much for helping test.  We'll get there!

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