From 4f87e34315eef2d6f799afa32d99e4ee8d6c6cc5 Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Sat, 15 Sep 2007 17:56:36 +0000 Subject: [PATCH] Fixed two more instances of bug #4827 in the management code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6298 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/syncdb.py | 2 +- django/core/management/sql.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/management/commands/syncdb.py b/django/core/management/commands/syncdb.py index 8087c9a693..81938c777c 100644 --- a/django/core/management/commands/syncdb.py +++ b/django/core/management/commands/syncdb.py @@ -39,7 +39,7 @@ class Command(NoArgsCommand): cursor = connection.cursor() if connection.features.uses_case_insensitive_names: - table_name_converter = str.upper + table_name_converter = lambda x: x.upper() else: table_name_converter = lambda x: x # Get a list of all existing database tables, so we know what needs to diff --git a/django/core/management/sql.py b/django/core/management/sql.py index ed76bc4e35..d7a46f0cd6 100644 --- a/django/core/management/sql.py +++ b/django/core/management/sql.py @@ -130,7 +130,7 @@ def sql_delete(app, style): else: table_names = [] if connection.features.uses_case_insensitive_names: - table_name_converter = str.upper + table_name_converter = lambda x: x.upper() else: table_name_converter = lambda x: x