Permalink
Browse files

Fixed #5242 -- Fixed table processing for some databases with case in…

…sensitive tables. Patch from Filip Wasilewski.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 1788b0c commit e461646b94d79cc72f76979a60b86ec83900ae6e @malcolmt malcolmt committed Sep 15, 2007
Showing with 4 additions and 3 deletions.
  1. +1 −0 AUTHORS
  2. +3 −3 django/core/management/commands/syncdb.py
View
@@ -306,6 +306,7 @@ answer newbie questions, and generally made Django that much better:
Milton Waddams
wam-djangobug@wamber.net
wangchun <yaohua2000@gmail.com>
+ Filip Wasilewski <filip.wasilewski@gmail.com>
Dan Watson <http://theidioteque.net/>
Chris Wesseling <Chris.Wesseling@cwi.nl>
James Wheare <django@sparemint.com>
@@ -38,13 +38,13 @@ def handle_noargs(self, **options):
cursor = connection.cursor()
- # Get a list of all existing database tables,
- # so we know what needs to be added.
- tables = table_list()
if connection.features.uses_case_insensitive_names:
table_name_converter = str.upper
else:
table_name_converter = lambda x: x
+ # Get a list of all existing database tables, so we know what needs to
+ # be added.
+ tables = [table_name_converter(name) for name in table_list()]
# Get a list of already installed *models* so that references work right.
seen_models = installed_models(tables)

0 comments on commit e461646

Please sign in to comment.