#11050: Oracle fails introspection tests due to capitalization
------------------------------------------+---------------------------------
 Reporter:  mboersma                      |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  SVN       
 Keywords:  Oracle oracle                 |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 The Oracle backend fails two introspection tests currently, I think
 because it expects lower-case identifiers when Oracle returns ALL_CAPS
 names by default.

 {{{
 C:\projects\django-trunk\tests>runtests.py --settings=testsettings.oracle
 introspection
 ...
 ======================================================================
 FAIL: test_get_table_description_names
 (regressiontests.introspection.tests.IntrospectionTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\projects\django-
 trunk\tests\regressiontests\introspection\tests.py", line 28, in _inner
     return func(*args, **kwargs)
   File "C:\projects\django-
 trunk\tests\regressiontests\introspection\tests.py", line 74, in
 test_get_table_description_names
     [f.column for f in Reporter._meta.fields])
 AssertionError: ['ID', 'FIRST_NAME', 'LAST_NAME', 'EMAIL'] != ['id',
 'first_name', 'last_name', 'email']
 }}}

 {{{
 ...
 ======================================================================
 FAIL: test_table_names
 (regressiontests.introspection.tests.IntrospectionTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "C:\projects\django-
 trunk\tests\regressiontests\introspection\tests.py", line 28, in _inner
     return func(*args, **kwargs)
   File "C:\projects\django-
 trunk\tests\regressiontests\introspection\tests.py", line 47, in
 test_table_names
     "'%s' isn't in table_list()." % Reporter._meta.db_table)
 AssertionError: 'introspection_reporter' isn't in table_list().
 }}}

 This happens in both the 1.0.x maintenance branch and the pre-1.1 trunk as
 of revision [10723]. It hasn't caused real-world problems as far as I
 know, but I've entered it here as a bug so we don't lose track of it.

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