Django

Code

Changeset 6291

Show
Ignore:
Timestamp:
09/15/07 11:19:10 (1 year ago)
Author:
mtredinnick
Message:

Fixed #5242 -- Fixed table processing for some databases with case insensitive tables. Patch from Filip Wasilewski.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r6289 r6291  
    307307    wam-djangobug@wamber.net 
    308308    wangchun <yaohua2000@gmail.com> 
     309    Filip Wasilewski <filip.wasilewski@gmail.com> 
    309310    Dan Watson <http://theidioteque.net/> 
    310311    Chris Wesseling <Chris.Wesseling@cwi.nl> 
  • django/trunk/django/core/management/commands/syncdb.py

    r6290 r6291  
    3939        cursor = connection.cursor() 
    4040 
    41         # Get a list of all existing database tables, 
    42         # so we know what needs to be added. 
    43         tables = table_list() 
    4441        if connection.features.uses_case_insensitive_names: 
    4542            table_name_converter = str.upper 
    4643        else: 
    4744            table_name_converter = lambda x: x 
     45        # Get a list of all existing database tables, so we know what needs to 
     46        # be added. 
     47        tables = [table_name_converter(name) for name in table_list()] 
    4848 
    4949        # Get a list of already installed *models* so that references work right.