#11898: oracle quote_name bug
------------------------------------------+---------------------------------
 Reporter:  steveed                       |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.1       
 Keywords:  oracle, quote_name            |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 In the below snippet of code from db/backends/oracle/base.py it appears
 that regardless of the how the name is sent in it is returned in
 uppercase. If believe line 155 should be 'return name'

 Thanks,
 Stephen

 {{{

 147    def quote_name(self, name):
 148        # SQL92 requires delimited (quoted) names to be case-sensitive.
 When
 149        # not quoted, Oracle has case-insensitive behavior for
 identifiers, but
 150        # always defaults to uppercase.
 151        # We simplify things by making Oracle identifiers always
 uppercase.
 152        if not name.startswith('"') and not name.endswith('"'):
 153            name = '"%s"' % util.truncate_name(name.upper(),
 154                                               self.max_name_length())
 155        return name.upper()

 }}}

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