#11487: Oracle encoding bug when saving more than 4000 characters
---------------------------------------------------+------------------------
          Reporter:  mdpetry                       |         Owner:  nobody     
    
            Status:  new                           |     Milestone:  1.1        
    
         Component:  Database layer (models, ORM)  |       Version:  SVN        
    
        Resolution:                                |      Keywords:  oracle 
database
             Stage:  Accepted                      |     Has_patch:  1          
    
        Needs_docs:  0                             |   Needs_tests:  0          
    
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by jbronn):

 Replying to [comment:17 ikelly]:
 > Thanks, rafax.  I've actually tested with the same set of versions and
 not reproduced the bug, so there must be something more to it.  I suspect
 it has something to do with the database encodings.
 >

 I was able to reproduce the bug using Oracle 11, Python 2.5.4, and
 cx_Oracle 4.4.1.  However, when using cx_Oracle 5.0.1 it's not a problem.
 I'm doing this on Windows, so this may be why I can reproduce.

 > About the test case, it appears to be saving a string of exactly 4000
 characters, not more than 4000 characters.  Is that intentional?  Also,
 does it still replicate if you use an NCLOB column instead of a CLOB
 column?  Since that is the default for Django, that is what we should be
 testing.

 I thought that at first, but if you evaluate `len(''.join([unicode(x) for
 x in xrange(4000)]))` you see it is really 14,890 characters long.  I also
 updated the test to use a `NCLOB` column, and the test case still fails
 without the patch.

 Ian, look over my patch and make sure it doesn't break anything else --
 I've run the full test suite but I want a second run on a different system
 to make sure there are no unintended side-effects.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11487#comment:18>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to